aboutsummaryrefslogtreecommitdiffhomepage
path: root/artnet.h
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2017-07-08 01:01:57 +0200
committercbdev <cb@cbcdn.com>2017-07-08 01:01:57 +0200
commit90d3983b164bf37e08dd143ce343a28e756ebf46 (patch)
tree67282a84ee123696f2ef2306c83f808b4aa88f82 /artnet.h
parentff6514b8f2d2f7512d47d15a10f7769243b05ecc (diff)
downloadmidimonster-90d3983b164bf37e08dd143ce343a28e756ebf46.tar.gz
midimonster-90d3983b164bf37e08dd143ce343a28e756ebf46.tar.bz2
midimonster-90d3983b164bf37e08dd143ce343a28e756ebf46.zip
Enable multi-interface ArtNet
Diffstat (limited to 'artnet.h')
-rw-r--r--artnet.h14
1 files changed, 2 insertions, 12 deletions
diff --git a/artnet.h b/artnet.h
index 0d61627..3633e81 100644
--- a/artnet.h
+++ b/artnet.h
@@ -1,12 +1,6 @@
#include <sys/socket.h>
#include "midimonster.h"
-/*
- * TODO
- * bind per instance
- * destination per instance
- */
-
int init();
static int artnet_configure(char* option, char* value);
static int artnet_configure_instance(instance* instance, char* option, char* value);
@@ -32,25 +26,21 @@ typedef struct /*_artnet_universe_model*/ {
typedef struct /*_artnet_instance_model*/ {
uint8_t net;
uint8_t uni;
- uint8_t mode;
struct sockaddr_storage dest_addr;
socklen_t dest_len;
artnet_universe data;
+ size_t fd_index;
} artnet_instance_data;
typedef union /*_artnet_instance_id*/ {
struct {
+ uint8_t fd_index;
uint8_t net;
uint8_t uni;
} fields;
uint64_t label;
} artnet_instance_id;
-enum {
- output = 1,
- mark = 2
-};
-
typedef struct /*_artnet_hdr*/ {
uint8_t magic[8];
uint16_t opcode;