From bf23b9f975ec97d20ba6381f2457e7b7d6ec0369 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 2 Feb 2013 20:14:05 +0000 Subject: 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 --- lilv/lilv.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lilv') 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* -- cgit v1.2.1