From 11e9dec049e64989c5f3656415d00c6c69851e8e Mon Sep 17 00:00:00 2001 From: cbdev Date: Sun, 4 Jun 2017 18:13:29 +0200 Subject: Move instance allocator to backend object, introduce backend start function --- artnet.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'artnet.h') 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; -- cgit v1.2.3