From d0d2c13f9a86238cdb6235ac858e51a2469d0ed3 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 3 Mar 2012 21:13:53 +0000 Subject: 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 --- lilv/lilv.h | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'lilv') 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); /** @} -- cgit v1.2.1