1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

file: implement in/out config sections

This commit is contained in:
Steffen Vogel 2018-07-23 16:07:26 +02:00
parent 6296d4217e
commit d0f4513122

View file

@ -90,14 +90,16 @@ int file_parse(struct node *n, json_t *cfg)
f->epoch_mode = FILE_EPOCH_DIRECT;
f->flush = 0;
ret = json_unpack_ex(cfg, &err, 0, "{ s: s, s?: b, s?: s, s?: F, s?: s, s?: F, s?: s }",
ret = json_unpack_ex(cfg, &err, 0, "{ s: s, s?: s, s: { s?: s, s?: F, s?: s, s?: F }, s: { s?: b }",
"uri", &uri_tmpl,
"flush", &f->flush,
"eof", &eof,
"rate", &f->rate,
"epoch_mode", &epoch_mode,
"epoch", &epoch_flt,
"format", &format
"format", &format,
"in",
"eof", &eof,
"rate", &f->rate,
"epoch_mode", &epoch_mode,
"epoch", &epoch_flt,
"out",
"flush", &f->flush
);
if (ret)
jerror(&err, "Failed to parse configuration of node %s", node_name(n));