summaryrefslogtreecommitdiffstats
path: root/slv2/plugin.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-02-19 06:10:38 +0000
committerDavid Robillard <d@drobilla.net>2007-02-19 06:10:38 +0000
commit25d13653ede7fdda4f08cd1e57c73a3c186a7b50 (patch)
tree455bda6403b55b656a8b9b98bdd238ad04deaef7 /slv2/plugin.h
parentd3d736deba06ca2ef655858ac22d8267c5cc6363 (diff)
downloadlilv-25d13653ede7fdda4f08cd1e57c73a3c186a7b50.tar.gz
lilv-25d13653ede7fdda4f08cd1e57c73a3c186a7b50.tar.bz2
lilv-25d13653ede7fdda4f08cd1e57c73a3c186a7b50.zip
Fixed doap:license typo in lv2.ttl.
Added stronger plugin validation. Plugged memory leaks. Aded list filtering by arbitrary function pointer. git-svn-id: http://svn.drobilla.net/lad/slv2@318 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'slv2/plugin.h')
-rw-r--r--slv2/plugin.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/slv2/plugin.h b/slv2/plugin.h
index 559c927..3cc2f8c 100644
--- a/slv2/plugin.h
+++ b/slv2/plugin.h
@@ -61,7 +61,8 @@ slv2_plugin_verify(SLV2Plugin plugin);
/** Duplicate a plugin.
*
* Use this if you want to keep an SLV2Plugin around but free the list it came
- * from.
+ * from. Freeing the returned plugin with slv2_plugin_free is the caller's
+ * responsibility.
*
* \return a newly allocated deep copy of \a plugin.
*/
@@ -69,6 +70,15 @@ SLV2Plugin
slv2_plugin_duplicate(SLV2Plugin plugin);
+/** Free an SLV2Plugin.
+ *
+ * This should NEVER be used on a plugin contained in a Plugins. Use this
+ * only with plugins created with slv2_plugin_duplicate.
+ */
+void
+slv2_plugin_free(SLV2Plugin plugin);
+
+
/** Get the URI of \a plugin.
*
* Any serialization that refers to plugins should refer to them by this.