summaryrefslogtreecommitdiffstats
path: root/slv2/plugin.h
diff options
context:
space:
mode:
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.