aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/eg-sampler.lv2/sampler.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-03-11 00:00:07 +0000
committerDavid Robillard <d@drobilla.net>2012-03-11 00:00:07 +0000
commita09cbaf65badd00c2f73dc68eb6d158635f5e1b8 (patch)
treedf74387b14ac9d511a57a5ea785e4bcbeac9923f /plugins/eg-sampler.lv2/sampler.c
parent129148359190339517c573dd00431a2a3534e79a (diff)
downloadlv2-a09cbaf65badd00c2f73dc68eb6d158635f5e1b8.tar.xz
Stylistically match the most recent state extension.
Diffstat (limited to 'plugins/eg-sampler.lv2/sampler.c')
-rw-r--r--plugins/eg-sampler.lv2/sampler.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/eg-sampler.lv2/sampler.c b/plugins/eg-sampler.lv2/sampler.c
index 2e3715c..d29f319 100644
--- a/plugins/eg-sampler.lv2/sampler.c
+++ b/plugins/eg-sampler.lv2/sampler.c
@@ -426,7 +426,7 @@ run(LV2_Handle instance,
static void
save(LV2_Handle instance,
LV2_State_Store_Function store,
- void* callback_data,
+ LV2_State_Handle handle,
uint32_t flags,
const LV2_Feature* const* features)
{
@@ -441,7 +441,7 @@ save(LV2_Handle instance,
char* apath = map_path->abstract_path(map_path->handle,
plugin->sample->path);
- store(callback_data,
+ store(handle,
plugin->uris.eg_file,
apath,
strlen(plugin->sample->path) + 1,
@@ -454,7 +454,7 @@ save(LV2_Handle instance,
static void
restore(LV2_Handle instance,
LV2_State_Retrieve_Function retrieve,
- void* callback_data,
+ LV2_State_Handle handle,
uint32_t flags,
const LV2_Feature* const* features)
{
@@ -465,7 +465,7 @@ restore(LV2_Handle instance,
uint32_t valflags;
const void* value = retrieve(
- callback_data,
+ handle,
plugin->uris.eg_file,
&size, &type, &valflags);
@@ -481,7 +481,7 @@ const void*
extension_data(const char* uri)
{
static const LV2_State_Interface state = { save, restore };
- if (!strcmp(uri, LV2_STATE_URI "#Interface")) {
+ if (!strcmp(uri, LV2_STATE__Interface)) {
return &state;
}
return NULL;