return ubusd_send_event(cl, id, ubusd_create_event_from_msg, data);
}
-static int ubusd_event_recv(struct ubus_client *cl, const char *method, struct blob_attr *msg)
+static int ubusd_event_recv(struct ubus_client *cl, struct ubus_msg_buf *ub, const char *method, struct blob_attr *msg)
{
if (!strcmp(method, "register"))
return ubusd_alloc_event_pattern(cl, msg);
struct avl_node path;
struct ubus_client *client;
- int (*recv_msg)(struct ubus_client *client, const char *method, struct blob_attr *msg);
+ int (*recv_msg)(struct ubus_client *client, struct ubus_msg_buf *ub,
+ const char *method, struct blob_attr *msg);
int event_seen;
unsigned int invoke_seq;
method = blob_data(attr[UBUS_ATTR_METHOD]);
if (!obj->client)
- return obj->recv_msg(cl, method, attr[UBUS_ATTR_DATA]);
+ return obj->recv_msg(cl, ub, method, attr[UBUS_ATTR_DATA]);
ub->hdr.peer = cl->id.id;
blob_buf_init(&b, 0);