From 1865e15083f28c9ebe0c039522cfbea05ad09a3c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 29 Mar 2011 21:18:23 +0000 Subject: Remove subject parameter. --- ext/persist.lv2/persist.ttl | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'ext/persist.lv2/persist.ttl') 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,

Similarly, a typical use case in a host is:

 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. */
-- 
cgit v1.2.1