diff options
author | cbdev <cb@cbcdn.com> | 2018-02-28 17:05:56 +0100 |
---|---|---|
committer | cbdev <cb@cbcdn.com> | 2018-02-28 17:05:56 +0100 |
commit | 2477edba0ae270a337f284ac7862d172f66a0303 (patch) | |
tree | e03418eb4127e796a13910686e4309669e247b00 /artnet.c | |
parent | a16094253ba19f2e7123029eb80fba52b0d192b6 (diff) | |
download | midimonster-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |