diff options
author | cbdev <cb@cbcdn.com> | 2017-07-08 01:01:57 +0200 |
---|---|---|
committer | cbdev <cb@cbcdn.com> | 2017-07-08 01:01:57 +0200 |
commit | 90d3983b164bf37e08dd143ce343a28e756ebf46 (patch) | |
tree | 67282a84ee123696f2ef2306c83f808b4aa88f82 /artnet.h | |
parent | ff6514b8f2d2f7512d47d15a10f7769243b05ecc (diff) | |
download | midimonster-90d3983b164bf37e08dd143ce343a28e756ebf46.tar.gz midimonster-90d3983b164bf37e08dd143ce343a28e756ebf46.tar.bz2 midimonster-90d3983b164bf37e08dd143ce343a28e756ebf46.zip |
Enable multi-interface ArtNet
Diffstat (limited to 'artnet.h')
-rw-r--r-- | artnet.h | 14 |
1 files changed, 2 insertions, 12 deletions
@@ -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; |