summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac4
-rw-r--r--slv2/types.h14
-rw-r--r--src/port.c2
-rw-r--r--utils/lv2_inspect.c3
4 files changed, 14 insertions, 9 deletions
diff --git a/configure.ac b/configure.ac
index fefc7ec..80acfa8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,6 +1,6 @@
AC_PREREQ(2.59)
-AC_INIT([slv2],0.5.0,[dave@drobilla.net])
+AC_INIT([slv2],0.5.1,[dave@drobilla.net])
AC_CONFIG_AUX_DIR([config])
@@ -35,7 +35,7 @@ AM_INIT_AUTOMAKE
# 0.4.5 = 7,0,1
# 0.5.0 = 8,0,0
-SLV2_VERSION="0.5.0"
+SLV2_VERSION="0.5.1"
SLV2_API_CURRENT="8"
SLV2_API_REVISION="0"
SLV2_API_AGE="0"
diff --git a/slv2/types.h b/slv2/types.h
index 1342934..d6442b3 100644
--- a/slv2/types.h
+++ b/slv2/types.h
@@ -29,18 +29,18 @@ extern "C" {
/** (Data) Type of a port
*
- * SLV2_UNKNOWN_PORT_TYPE means the Port is not of any type SLV2 understands
- * (currently Control, Audio, MIDI, and OSC).
- *
- * Further class information can be using slv2_port_get_value(p, "rdf:type")
- * or a custom query.
+ * SLV2_PORT_DATA_TYPE_UNKNOWN means the Port is not of any type SLV2
+ * understands. This does not mean the port is unusable with slv2
+ * however:further class information can be using
+ * slv2_port_get_value(p, "rdf:type") or a custom query.
*/
typedef enum _SLV2PortDataType {
SLV2_PORT_DATA_TYPE_UNKNOWN,
SLV2_PORT_DATA_TYPE_CONTROL, /**< One float per block */
SLV2_PORT_DATA_TYPE_AUDIO, /**< One float per frame */
- SLV2_PORT_DATA_TYPE_MIDI, /**< A buffer of MIDI data (LL extension) */
- SLV2_PORT_DATA_TYPE_OSC, /**< A buffer of OSC data (DR extension) */
+ SLV2_PORT_DATA_TYPE_MIDI, /**< DEPRECATED: A buffer of MIDI data (LL extension) */
+ SLV2_PORT_DATA_TYPE_OSC, /**< DEPRECATED: A buffer of OSC data (DR extension) */
+ SLV2_PORT_DATA_TYPE_EVENT, /**< Generic event port */
} SLV2PortDataType;
/** Direction (input or output) of a port
diff --git a/src/port.c b/src/port.c
index 851cb38..9925a13 100644
--- a/src/port.c
+++ b/src/port.c
@@ -114,6 +114,8 @@ slv2_port_get_data_type(SLV2Plugin p,
ret = SLV2_PORT_DATA_TYPE_MIDI;
else if (!strcmp(uri, "http://drobilla.net/ns/lv2ext/osc/0#OSCPort"))
ret = SLV2_PORT_DATA_TYPE_OSC;
+ else if (!strcmp(uri, "http://lv2plug.in/ns/ext/event#EventPort"))
+ ret = SLV2_PORT_DATA_TYPE_EVENT;
}
}
diff --git a/utils/lv2_inspect.c b/utils/lv2_inspect.c
index 34213f6..5919201 100644
--- a/utils/lv2_inspect.c
+++ b/utils/lv2_inspect.c
@@ -62,6 +62,9 @@ print_port(SLV2Plugin p, uint32_t index)
case SLV2_PORT_DATA_TYPE_OSC:
printf("OSC");
break;
+ case SLV2_PORT_DATA_TYPE_EVENT:
+ printf("Event");
+ break;
default:
printf("Unknown");
}