Skip to content

Commit 22b8698

Browse files
committed
zeromq: Add option for system events
Missed when we moved from Netlink to Zeromq, and the only user of this option has not been updated befoew now.
1 parent 2034459 commit 22b8698

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

metadata_input_zeromq.c

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -406,14 +406,17 @@ static uint8_t md_input_zeromq_init(void *ptr, json_object* config)
406406
json_object* subconfig;
407407
if (json_object_object_get_ex(config, "zmq_input", &subconfig)) {
408408
json_object_object_foreach(subconfig, key, val) {
409-
if (!strcmp(key, "conn"))
409+
if (!strcmp(key, "conn")) {
410410
miz->md_zmq_mask |= META_TYPE_CONNECTION;
411-
else if (!strcmp(key, "pos"))
411+
} else if (!strcmp(key, "pos")) {
412412
miz->md_zmq_mask |= META_TYPE_POS;
413-
else if (!strcmp(key, "iface"))
413+
} else if (!strcmp(key, "iface")) {
414414
miz->md_zmq_mask |= META_TYPE_INTERFACE;
415-
else if (!strcmp(key, "radio"))
415+
} else if (!strcmp(key, "radio")) {
416416
miz->md_zmq_mask |= META_TYPE_RADIO;
417+
} else if (!strcmp(key, "system")) {
418+
miz->md_zmq_mask |= META_TYPE_SYSTEM;
419+
}
417420
}
418421
}
419422

@@ -432,6 +435,7 @@ void md_zeromq_input_usage()
432435
fprintf(stderr, " \"pos\":\t\tReceive ZeroMQ position events\n");
433436
fprintf(stderr, " \"iface\":\t\tReceive ZeroMQ interface events\n");
434437
fprintf(stderr, " \"radio\":\t\tReceive ZeroMQ radio events (QXDM + neigh. cells)\n");
438+
fprintf(stderr, " \"system\":\t\tReceive ZeroMQ system events (modem restarts)\n");
435439
fprintf(stderr, "},\n");
436440
}
437441

0 commit comments

Comments
 (0)