diff options
Diffstat (limited to 'cethcan/can.c')
-rw-r--r-- | cethcan/can.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cethcan/can.c b/cethcan/can.c index a36fd6c..5145871 100644 --- a/cethcan/can.c +++ b/cethcan/can.c @@ -50,6 +50,14 @@ void can_broadcast(struct can_user *origin, struct can_message *msg) u->handler(u->arg, msg); } +void can_json(json_t *json, enum json_subtype type) +{ + struct can_user *u; + for (u = users; u; u = u->next) + if (u->json) + u->json(u->arg, json, type); +} + void can_init(void) { /* nothing to do */ |