diff options
author | cbdev <cb@cbcdn.com> | 2019-12-12 20:29:03 +0100 |
---|---|---|
committer | cbdev <cb@cbcdn.com> | 2019-12-12 20:29:03 +0100 |
commit | bef4dd78ca2a610b4c669ea2c7a477283769997d (patch) | |
tree | c02ff860ea761a1f99692610197dd44d44156516 /backends/osc.c | |
parent | 763f6d6a434b6e5a9d166cb538857d0cac5fa29e (diff) | |
download | midimonster-bef4dd78ca2a610b4c669ea2c7a477283769997d.tar.gz midimonster-bef4dd78ca2a610b4c669ea2c7a477283769997d.tar.bz2 midimonster-bef4dd78ca2a610b4c669ea2c7a477283769997d.zip |
Extend hostspec parsing and implement local mode for sACN (#39)
Diffstat (limited to 'backends/osc.c')
-rw-r--r-- | backends/osc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/backends/osc.c b/backends/osc.c index 2c65ecb..15b5c24 100644 --- a/backends/osc.c +++ b/backends/osc.c @@ -496,7 +496,7 @@ static int osc_register_pattern(osc_instance_data* data, char* pattern_path, cha static int osc_configure_instance(instance* inst, char* option, char* value){ osc_instance_data* data = (osc_instance_data*) inst->impl; - char* host = NULL, *port = NULL; + char* host = NULL, *port = NULL, *fd_opts = NULL; if(!strcmp(option, "root")){ if(osc_path_validate(value, 0)){ @@ -516,7 +516,7 @@ static int osc_configure_instance(instance* inst, char* option, char* value){ return 0; } else if(!strcmp(option, "bind")){ - mmbackend_parse_hostspec(value, &host, &port); + mmbackend_parse_hostspec(value, &host, &port, &fd_opts); if(!host || !port){ fprintf(stderr, "Invalid bind address for instance %s\n", inst->name); return 1; @@ -541,7 +541,7 @@ static int osc_configure_instance(instance* inst, char* option, char* value){ return 0; } - mmbackend_parse_hostspec(value, &host, &port); + mmbackend_parse_hostspec(value, &host, &port, NULL); if(!host || !port){ fprintf(stderr, "Invalid destination address for instance %s\n", inst->name); return 1; |