From cbeb09ee0a31a8bec670864b03d4f743f968d1b1 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 28 Jan 2008 01:18:25 +0000 Subject: Add slv2_plugin_get_num_ports_of_class. git-svn-id: http://svn.drobilla.net/lad/slv2@1116 a436a847-0d15-0410-975c-d299462d15a1 --- slv2/plugin.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'slv2') 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 -- cgit v1.2.1