diff options
author | David Robillard <d@drobilla.net> | 2008-01-28 01:18:25 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-01-28 01:18:25 +0000 |
commit | cbeb09ee0a31a8bec670864b03d4f743f968d1b1 (patch) | |
tree | 1839dcf4cb4b9e572e313b0a1a9c594fadca14f6 /slv2 | |
parent | 6de587b04154f2efdc2a94c0a78225f7adc88ff9 (diff) | |
download | lilv-cbeb09ee0a31a8bec670864b03d4f743f968d1b1.tar.gz lilv-cbeb09ee0a31a8bec670864b03d4f743f968d1b1.tar.bz2 lilv-cbeb09ee0a31a8bec670864b03d4f743f968d1b1.zip |
Add slv2_plugin_get_num_ports_of_class.
git-svn-id: http://svn.drobilla.net/lad/slv2@1116 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'slv2')
-rw-r--r-- | slv2/plugin.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/slv2/plugin.h b/slv2/plugin.h index a3ae1f0..0592bfd 100644 --- a/slv2/plugin.h +++ b/slv2/plugin.h @@ -270,6 +270,18 @@ uint32_t slv2_plugin_get_num_ports(SLV2Plugin p); +/** Get the number of ports on this plugin that are members of some class(es). + * + * Note that this is a varargs function so ports fitting any type 'profile' + * desired can be found quickly. REMEMBER TO TERMINATE THE PARAMETER LIST + * OF THIS FUNCTION WITH NULL OR VERY NASTY THINGS WILL HAPPEN. + * + * Time = O(1) + */ +uint32_t +slv2_plugin_get_num_ports_of_class(SLV2Plugin p, + SLV2Value class_1, ...); + /** Return whether or not the plugin introduces (and reports) latency. * * The index of the latency port can be found with slv2_plugin_get_latency_port |