X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fubus.git;a=blobdiff_plain;f=ubusd_event.c;h=984f341eecea25f27731ef4678fc303753543e0a;hp=6d0ae3014d7e5ef69254d94ff6579e8a98fca308;hb=6f4e11e1db399074273944329883f9c35e7daef6;hpb=ba607d976b77c40162637d354fd8e1560384a66d diff --git a/ubusd_event.c b/ubusd_event.c index 6d0ae30..984f341 100644 --- a/ubusd_event.c +++ b/ubusd_event.c @@ -103,8 +103,6 @@ static int ubusd_alloc_event_pattern(struct ubus_client *cl, struct blob_attr *m return 0; } -typedef struct ubus_msg_buf *(*event_fill_cb)(void *priv, const char *id); - static void ubusd_send_event_msg(struct ubus_msg_buf **ub, struct ubus_client *cl, struct ubus_object *obj, const char *id, event_fill_cb fill_cb, void *cb_priv) @@ -143,8 +141,8 @@ static bool strmatch_len(const char *s1, const char *s2, int *len) return false; } -static int ubusd_send_event(struct ubus_client *cl, const char *id, - event_fill_cb fill_cb, void *cb_priv) +int ubusd_send_event(struct ubus_client *cl, const char *id, + event_fill_cb fill_cb, void *cb_priv) { struct ubus_msg_buf *ub = NULL; struct event_source *ev;