From a6389f9a9220e11110778ec46b6c12abeb058d94 Mon Sep 17 00:00:00 2001 From: Dave Robillard Date: Sat, 20 Jun 2009 19:52:26 -0400 Subject: Query and store port group information. Replace port index arrays with a struct for holding more information than just indices (e.g. groups). --- ext/lv2/gstlv2.h | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'ext/lv2/gstlv2.h') diff --git a/ext/lv2/gstlv2.h b/ext/lv2/gstlv2.h index 66f9ddf9..9fac262a 100644 --- a/ext/lv2/gstlv2.h +++ b/ext/lv2/gstlv2.h @@ -57,15 +57,22 @@ struct _GstLV2 { gboolean activated; }; +struct _GstLV2Port { + gint index; + SLV2Value group; +}; + struct _GstLV2Class { GstSignalProcessorClass parent_class; SLV2Plugin plugin; - gint *audio_in_portnums; - gint *audio_out_portnums; - gint *control_in_portnums; - gint *control_out_portnums; + GSList *groups; + + struct _GstLV2Port *audio_in_ports; + struct _GstLV2Port *audio_out_ports; + struct _GstLV2Port *control_in_ports; + struct _GstLV2Port *control_out_ports; }; -- cgit v1.2.1