From ac3f3ffe14e0e01710e0ded24914d5ca1f31f55d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 21 Apr 2007 07:13:35 +0000 Subject: Plugin classes (categories) progress. git-svn-id: http://svn.drobilla.net/lad/slv2@467 a436a847-0d15-0410-975c-d299462d15a1 --- slv2/pluginclass.h | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'slv2/pluginclass.h') diff --git a/slv2/pluginclass.h b/slv2/pluginclass.h index 1124bd8..7260d7d 100644 --- a/slv2/pluginclass.h +++ b/slv2/pluginclass.h @@ -30,6 +30,15 @@ extern "C" { */ +/** Get the URI of this class' superclass. + * + * Returned value is owned by \a plugin_class and must not be freed by caller. + * + * Time = O(1) + */ +const char* slv2_plugin_class_get_parent_uri(SLV2PluginClass plugin_class); + + /** Get the URI of this plugin class. * * Returned value is owned by \a plugin_class and must not be freed by caller. @@ -39,7 +48,7 @@ extern "C" { const char* slv2_plugin_class_get_uri(SLV2PluginClass plugin_class); -/** Get the label of this plugin_class, ie "Oscillators". +/** Get the label of this plugin class, ie "Oscillators". * * Returned value is owned by \a plugin_class and must not be freed by caller. * @@ -47,6 +56,17 @@ const char* slv2_plugin_class_get_uri(SLV2PluginClass plugin_class); */ const char* slv2_plugin_class_get_label(SLV2PluginClass plugin_class); + +/** Get the subclasses of this plugin class. + * + * Returned value must be freed by caller with slv2_plugin_classes_free. + * + * Time = O(nclasses) + */ +SLV2PluginClasses +slv2_plugin_class_get_children(SLV2PluginClass plugin_class); + + #if 0 /** Get the path of this plugin_class, ie "Plugins/Generators/Oscillators". * -- cgit v1.2.1