X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fubus.git;a=blobdiff_plain;f=libubus.h;h=48ee056975882096cb294cbe6e7186dd85e7ecb6;hp=c93ad8f8a7541575681b6d92197f948accf99f9f;hb=f6a6b0d492900b7a087a8a89d11fa5b94f4c5cb5;hpb=fa989780bda3ad10fcbb637390d59afe2b32ba81 diff --git a/libubus.h b/libubus.h index c93ad8f..48ee056 100644 --- 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);