From 2477edba0ae270a337f284ac7862d172f66a0303 Mon Sep 17 00:00:00 2001 From: cbdev Date: Wed, 28 Feb 2018 17:05:56 +0100 Subject: Update ArtNet configuration syntax, add mm_timestamp API --- artnet.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'artnet.c') diff --git a/artnet.c b/artnet.c index 6863861..474d0a6 100644 --- a/artnet.c +++ b/artnet.c @@ -209,11 +209,11 @@ static int artnet_configure_instance(instance* inst, char* option, char* value){ data->net = strtoul(value, NULL, 0); return 0; } - else if(!strcmp(option, "uni")){ + else if(!strcmp(option, "uni") || !strcmp(option, "universe")){ data->uni = strtoul(value, NULL, 0); return 0; } - else if(!strcmp(option, "iface")){ + else if(!strcmp(option, "iface") || !strcmp(option, "interface")){ data->fd_index = strtoul(value, NULL, 0); if(data->fd_index >= artnet_fds){ @@ -222,7 +222,7 @@ static int artnet_configure_instance(instance* inst, char* option, char* value){ } return 0; } - else if(!strcmp(option, "dest")){ + else if(!strcmp(option, "dest") || !strcmp(option, "destination")){ if(artnet_separate_hostspec(value, &host, &port)){ fprintf(stderr, "Not a valid ArtNet destination for instance %s\n", inst->name); return 1; -- cgit v1.2.3