aboutsummaryrefslogtreecommitdiffhomepage
path: root/artnet.h
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2017-06-05 18:53:41 +0200
committercbdev <cb@cbcdn.com>2017-06-05 18:53:41 +0200
commit40e123db7713b188162cd94d935f7a395405567a (patch)
treef745b15d41af6a38b675bdbe2de6473657c7e212 /artnet.h
parented55916e772264dc8278fc8c96d4139aec31e89e (diff)
downloadmidimonster-40e123db7713b188162cd94d935f7a395405567a.tar.gz
midimonster-40e123db7713b188162cd94d935f7a395405567a.tar.bz2
midimonster-40e123db7713b188162cd94d935f7a395405567a.zip
Core select loop
Diffstat (limited to 'artnet.h')
-rw-r--r--artnet.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/artnet.h b/artnet.h
index 8e05153..4976938 100644
--- a/artnet.h
+++ b/artnet.h
@@ -10,10 +10,23 @@ 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;
+ char* dest;
} artnet_instance_data;
+
+enum {
+ output = 1,
+ mark = 2
+};
+
+typedef struct /*_artnet_universe_model*/ {
+ uint8_t net;
+ uint8_t uni;
+ uint8_t flags;
+ uint8_t last_frame;
+ uint8_t data[512];
+ uint8_t mask[512];
+} artnet_universe;