extern "C" {
typedef enum {
LV2_PERSIST_IS_POD = 1,
LV2_PERSIST_IS_PORTABLE = 1 << 1
} LV2_Persist_Flags;
typedef int (*LV2_Persist_Store_Function)(
void* callback_data,
uint32_t key,
const void* value,
size_t size,
uint32_t type,
uint32_t flags);
typedef const void* (*LV2_Persist_Retrieve_Function)(
void* callback_data,
uint32_t key,
size_t* size,
uint32_t* type,
uint32_t* flags);
typedef struct _LV2_Persist {
void (*save)(LV2_Handle instance,
LV2_Persist_Store_Function store,
void* callback_data);
void (*restore)(LV2_Handle instance,
LV2_Persist_Retrieve_Function retrieve,
void* callback_data);
} LV2_Persist;
}
|