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

api: return path status as string

This commit is contained in:
Steffen Vogel 2020-07-04 17:16:31 +02:00 committed by Steffen Vogel
parent 60c90408c4
commit 0525dfc383

View file

@ -46,8 +46,8 @@ public:
for (size_t i = 0; i < vlist_length(paths); i++) {
struct vpath *p = (struct vpath *) vlist_at(paths, i);
json_t *json_path = json_pack("{ s: i }",
"state", p->state
json_t *json_path = json_pack("{ s: s }",
"state", state_print(p->state)
);
/* Add all additional fields of node here.