add code for sending events and fix the code for receiving events
[project/ubus.git] / libubus.h
index e0f8ab2..9f21647 100644 (file)
--- a/libubus.h
+++ b/libubus.h
@@ -185,6 +185,9 @@ int ubus_send_reply(struct ubus_context *ctx, struct ubus_request_data *req,
                    struct blob_attr *msg);
 
 /* ----------- events ----------- */
+int ubus_send_event(struct ubus_context *ctx, const char *id,
+                   struct blob_attr *data);
+
 int ubus_register_event_handler(struct ubus_context *ctx,
                                struct ubus_event_handler *ev,
                                const char *pattern);