diff options
author | David Lamparter <equinox@diac24.net> | 2016-05-15 14:03:59 +0200 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2016-05-15 14:03:59 +0200 |
commit | 58e5252557fb0eea1585cd9624e1da0a730d9a4c (patch) | |
tree | 3187f5672dcc156c1574509bde7aacd4742feef2 /cethcan/main.c | |
parent | 3dc9bd30e3e116cae4ca48c874a5ad571aa726c7 (diff) |
cethcan: ttyDMX
Diffstat (limited to 'cethcan/main.c')
-rw-r--r-- | cethcan/main.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cethcan/main.c b/cethcan/main.c index 2b9154e..8d38757 100644 --- a/cethcan/main.c +++ b/cethcan/main.c @@ -81,6 +81,13 @@ int main(int argc, char **argv) return 1; } + json_t *dmxcfg = json_object_get(config, "ttydmx"); + for (size_t i = 0; i < json_array_size(dmxcfg); i++) { + json_t *c = json_array_get(dmxcfg, i); + if (ttydmx_init_conf(c)) + return 1; + } + http_init(); json_decref(config); |