diff options
author | David Robillard <d@drobilla.net> | 2011-11-06 17:44:39 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-11-06 17:44:39 +0000 |
commit | a0320122b94a8c92cd780f8d3c9da7260ec400e6 (patch) | |
tree | 9bba3c0dda4b08f491392416630b63377583a328 /ext/state.lv2/state.h | |
parent | 09e404f50bcf96c8942d73b5b68baa2f0d6f3d02 (diff) | |
download | lv2-a0320122b94a8c92cd780f8d3c9da7260ec400e6.tar.xz |
Typedef void* callback_data parameter.
Diffstat (limited to 'ext/state.lv2/state.h')
-rw-r--r-- | ext/state.lv2/state.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/ext/state.lv2/state.h b/ext/state.lv2/state.h index 56ebfda..f52b375 100644 --- a/ext/state.lv2/state.h +++ b/ext/state.lv2/state.h @@ -35,6 +35,8 @@ extern "C" { #define LV2_STATE_URI "http://lv2plug.in/ns/ext/state" +typedef void* LV2_State_Handle; + /** Flags describing value characteristics. @@ -106,13 +108,12 @@ typedef enum { The plugin MUST NOT attempt to use this function outside of the LV2_State_Interface.restore() context. */ -typedef int (*LV2_State_Store_Function)( - void* callback_data, - uint32_t key, - const void* value, - size_t size, - uint32_t type, - uint32_t flags); +typedef int (*LV2_State_Store_Function)(LV2_State_Handle* handle, + uint32_t key, + const void* value, + size_t size, + uint32_t type, + uint32_t flags); /** A host-provided function to retrieve a property. @@ -138,12 +139,11 @@ typedef int (*LV2_State_Store_Function)( copied for later use if necessary, assuming the plugin knows how to do so correctly (e.g. the value is POD, or the plugin understands the type). */ -typedef const void* (*LV2_State_Retrieve_Function)( - void* callback_data, - uint32_t key, - size_t* size, - uint32_t* type, - uint32_t* flags); +typedef const void* (*LV2_State_Retrieve_Function)(LV2_State_Handle handle, + uint32_t key, + size_t* size, + uint32_t* type, + uint32_t* flags); /** State Extension Data. @@ -207,7 +207,7 @@ typedef struct _LV2_State_Interface { */ void (*save)(LV2_Handle instance, LV2_State_Store_Function store, - void* callback_data, + LV2_State_Handle handle, uint32_t flags); /** @@ -236,7 +236,7 @@ typedef struct _LV2_State_Interface { */ void (*restore)(LV2_Handle instance, LV2_State_Retrieve_Function retrieve, - void* callback_data, + LV2_State_Handle handle, uint32_t flags); } LV2_State_Interface; |