aboutsummaryrefslogtreecommitdiffhomepage
path: root/artnet.c
diff options
context:
space:
mode:
Diffstat (limited to 'artnet.c')
-rw-r--r--artnet.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/artnet.c b/artnet.c
index a1f52d7..1fe8fb2 100644
--- a/artnet.c
+++ b/artnet.c
@@ -13,6 +13,7 @@ int artnet_init(){
.channel = artnet_channel,
.handle = artnet_set,
.process = artnet_handle,
+ .start = artnet_start,
.shutdown = artnet_shutdown
};
@@ -64,6 +65,15 @@ static int artnet_configure_instance(instance* instance, char* option, char* val
data->uni = strtoul(value, NULL, 10);
return 0;
}
+ else if(!strcmp(option, "output")){
+ if(!strcmp(value, "true")){
+ data->mode |= MODE_OUTPUT;
+ }
+ else{
+ data->mode &= ~MODE_OUTPUT;
+ }
+ return 0;
+ }
fprintf(stderr, "Unknown ArtNet instance option %s\n", option);
return 1;
@@ -85,6 +95,11 @@ static int artnet_handle(size_t num, int* fd, void** data){
return 1;
}
+static int artnet_start(){
+ //TODO
+ return 1;
+}
+
static int artnet_shutdown(){
size_t n, p;
instance** inst = NULL;