summaryrefslogtreecommitdiffstats
path: root/lilv
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-03-03 21:13:53 +0000
committerDavid Robillard <d@drobilla.net>2012-03-03 21:13:53 +0000
commitd0d2c13f9a86238cdb6235ac858e51a2469d0ed3 (patch)
tree4e659c65d7df331808e2a7d824013ba1265eaa70 /lilv
parentccca9167f350ab62e0b8adb529a238f61a0ec499 (diff)
downloadlilv-d0d2c13f9a86238cdb6235ac858e51a2469d0ed3.tar.gz
lilv-d0d2c13f9a86238cdb6235ac858e51a2469d0ed3.tar.bz2
lilv-d0d2c13f9a86238cdb6235ac858e51a2469d0ed3.zip
Use a fully-fledged Atom serialisation API for state saving.
Add lilv_state_to_string(). git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4018 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'lilv')
-rw-r--r--lilv/lilv.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/lilv/lilv.h b/lilv/lilv.h
index 6e0a392..ae5c557 100644
--- a/lilv/lilv.h
+++ b/lilv/lilv.h
@@ -1332,12 +1332,23 @@ lilv_state_restore(const LilvState* state,
LILV_API
int
lilv_state_save(LilvWorld* world,
+ LV2_URID_Map* map,
LV2_URID_Unmap* unmap,
const LilvState* state,
const char* uri,
const char* dir,
- const char* filename,
- const LV2_Feature *const * features);
+ const char* filename);
+
+/**
+ Save state to a string. This function does not use the filesystem.
+*/
+LILV_API
+char*
+lilv_state_to_string(LilvWorld* world,
+ LV2_URID_Map* map,
+ LV2_URID_Unmap* unmap,
+ const LilvState* state,
+ const char* uri);
/**
@}