aboutsummaryrefslogtreecommitdiffhomepage
path: root/artnet.c
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2018-02-28 17:05:56 +0100
committercbdev <cb@cbcdn.com>2018-02-28 17:05:56 +0100
commit2477edba0ae270a337f284ac7862d172f66a0303 (patch)
treee03418eb4127e796a13910686e4309669e247b00 /artnet.c
parenta16094253ba19f2e7123029eb80fba52b0d192b6 (diff)
downloadmidimonster-2477edba0ae270a337f284ac7862d172f66a0303.tar.gz
midimonster-2477edba0ae270a337f284ac7862d172f66a0303.tar.bz2
midimonster-2477edba0ae270a337f284ac7862d172f66a0303.zip
Update ArtNet configuration syntax, add mm_timestamp API
Diffstat (limited to 'artnet.c')
-rw-r--r--artnet.c6
1 files changed, 3 insertions, 3 deletions
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;