add functionality for registering anonymous objects as event listeners
[project/ubus.git] / libubus.h
index c93ad8f..48ee056 100644 (file)
--- a/libubus.h
+++ b/libubus.h
@@ -171,3 +171,7 @@ int ubus_publish(struct ubus_context *ctx, struct ubus_object *obj);
 /* send a reply to an incoming object method call */
 int ubus_send_reply(struct ubus_context *ctx, struct ubus_request_data *req,
                    struct blob_attr *msg);
+
+/* ----------- events ----------- */
+int ubus_register_event_handler(struct ubus_context *ctx, struct ubus_object *obj,
+                               const char *pattern);