From 25d13653ede7fdda4f08cd1e57c73a3c186a7b50 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 19 Feb 2007 06:10:38 +0000 Subject: 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 --- slv2/plugin.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'slv2/plugin.h') 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. -- cgit v1.2.1