From 90d3983b164bf37e08dd143ce343a28e756ebf46 Mon Sep 17 00:00:00 2001 From: cbdev Date: Sat, 8 Jul 2017 01:01:57 +0200 Subject: Enable multi-interface ArtNet --- artnet.h | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'artnet.h') diff --git a/artnet.h b/artnet.h index 0d61627..3633e81 100644 --- a/artnet.h +++ b/artnet.h @@ -1,12 +1,6 @@ #include #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; -- cgit v1.2.3