diff options
author | David Robillard <d@drobilla.net> | 2011-03-29 21:18:23 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-03-29 21:18:23 +0000 |
commit | 1865e15083f28c9ebe0c039522cfbea05ad09a3c (patch) | |
tree | 7e264023d684a0f983a7784b90621ee7cd7565b5 /ext/persist.lv2/persist.ttl | |
parent | 1c7b2d81f98607aa57c6a4ca3bf9765be845a5c3 (diff) | |
download | lv2-1865e15083f28c9ebe0c039522cfbea05ad09a3c.tar.xz |
Remove subject parameter.
Diffstat (limited to 'ext/persist.lv2/persist.ttl')
-rw-r--r-- | ext/persist.lv2/persist.ttl | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/ext/persist.lv2/persist.ttl b/ext/persist.lv2/persist.ttl index fcd03dc..e5f6417 100644 --- a/ext/persist.lv2/persist.ttl +++ b/ext/persist.lv2/persist.ttl @@ -112,7 +112,6 @@ void my_save(LV2_Handle instance, const char* greeting = plugin->state->greeting; store(callback_data, - 0, plugin->uri_greeting_key, greeting, strlen(greeting) + 1, @@ -130,7 +129,6 @@ void my_restore(LV2_Handle instance, uint32_t type; uint32_t flags; const char* greeting = retrieve(callback_data, - 0 plugin->uri_greeting_key, &size, &type, @@ -148,7 +146,6 @@ void my_restore(LV2_Handle instance, <p>Similarly, a typical use case in a host is:</p> <pre> int store_callback(void* callback_data, - uint32_t subject, uint32_t key, const void* value, size_t size, @@ -160,8 +157,7 @@ int store_callback(void* callback_data, LV2_PERSIST_IS_PORTABLE would have to be checked as well. */ Map* state_map = (Map*)callback_data; - state_map->insert(Key(subject, key), - Value(copy(value), size, type, pod)); + state_map->insert(key, Value(copy(value), size, type, pod)); return 0; } else { return 1; /* Non-POD events are unsupported. */ |