summaryrefslogtreecommitdiffstats
path: root/lilv
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-02-02 20:14:05 +0000
committerDavid Robillard <d@drobilla.net>2013-02-02 20:14:05 +0000
commitbf23b9f975ec97d20ba6381f2457e7b7d6ec0369 (patch)
tree52df2281c1dba7fed598e55d5dabe9e219f84a65 /lilv
parentdd51340700469210bbbff0424f6ebe85d32e9524 (diff)
downloadlilv-bf23b9f975ec97d20ba6381f2457e7b7d6ec0369.tar.gz
lilv-bf23b9f975ec97d20ba6381f2457e7b7d6ec0369.tar.bz2
lilv-bf23b9f975ec97d20ba6381f2457e7b7d6ec0369.zip
Require a URI for lilv_state_to_string() and fail gracefully otherwise.
Fail gracefully when lilv_state_new_from_string() is called on NULL. Fixes #865. git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5030 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'lilv')
-rw-r--r--lilv/lilv.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lilv/lilv.h b/lilv/lilv.h
index 9ee45b8..6719e67 100644
--- a/lilv/lilv.h
+++ b/lilv/lilv.h
@@ -1420,6 +1420,11 @@ lilv_state_save(LilvWorld* world,
/**
Save state to a string. This function does not use the filesystem.
+
+ @param uri URI for the state description (mandatory).
+ @param base_uri Base URI for serialisation. Unless you know what you are
+ doing, pass NULL for this, otherwise the state may not be restorable via
+ lilv_state_new_from_string().
*/
LILV_API
char*