libubus: add ubus_unregister_subscriber wrapper
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
This commit is contained in:
parent
495f460818
commit
3b66d054cc
1 changed files with 7 additions and 0 deletions
|
@ -227,6 +227,13 @@ int ubus_remove_object(struct ubus_context *ctx, struct ubus_object *obj);
|
|||
|
||||
/* add a subscriber notifications from another object */
|
||||
int ubus_register_subscriber(struct ubus_context *ctx, struct ubus_subscriber *obj);
|
||||
|
||||
static inline int
|
||||
ubus_unregister_subscriber(struct ubus_context *ctx, struct ubus_subscriber *obj)
|
||||
{
|
||||
return ubus_remove_object(ctx, &obj->obj);
|
||||
}
|
||||
|
||||
int ubus_subscribe(struct ubus_context *ctx, struct ubus_subscriber *obj, uint32_t id);
|
||||
int ubus_unsubscribe(struct ubus_context *ctx, struct ubus_subscriber *obj, uint32_t id);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue