projects
/
project
/
ubus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
libubus: add monitor support
[project/ubus.git]
/
libubus.c
diff --git
a/libubus.c
b/libubus.c
index
e1e68d0
..
bfbaeb6
100644
(file)
--- a/
libubus.c
+++ b/
libubus.c
@@
-105,6
+105,10
@@
ubus_process_msg(struct ubus_context *ctx, struct ubus_msghdr_buf *buf, int fd)
ubus_process_obj_msg(ctx, buf);
break;
+ case UBUS_MSG_MONITOR:
+ if (ctx->monitor_cb)
+ ctx->monitor_cb(ctx, buf->hdr.seq, buf->data);
+ break;
}
}