aboutsummaryrefslogtreecommitdiffhomepage
path: root/artnet.h
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2017-06-04 18:13:29 +0200
committercbdev <cb@cbcdn.com>2017-06-04 18:13:29 +0200
commit11e9dec049e64989c5f3656415d00c6c69851e8e (patch)
treef087aa41ead18a8b09657fd400bd8b20df80b13f /artnet.h
parentbae15293ddc859a1ea426f15e7fa476f71ece020 (diff)
downloadmidimonster-11e9dec049e64989c5f3656415d00c6c69851e8e.tar.gz
midimonster-11e9dec049e64989c5f3656415d00c6c69851e8e.tar.bz2
midimonster-11e9dec049e64989c5f3656415d00c6c69851e8e.zip
Move instance allocator to backend object, introduce backend start function
Diffstat (limited to 'artnet.h')
-rw-r--r--artnet.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/artnet.h b/artnet.h
index 03106bf..8e05153 100644
--- a/artnet.h
+++ b/artnet.h
@@ -7,9 +7,13 @@ static instance* artnet_instance();
static channel* artnet_channel(instance* instance, char* spec);
static int artnet_set(size_t num, channel* c, channel_value* v);
static int artnet_handle(size_t num, int* fd, void** data);
+static int artnet_start();
static int artnet_shutdown();
+#define MODE_OUTPUT 1
+
typedef struct /*_artnet_instance_model*/ {
uint8_t net;
uint8_t uni;
+ uint8_t mode;
} artnet_instance_data;