X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fubus.git;a=blobdiff_plain;f=libubus.h;h=cb575b0c765687c54eb55965659cec5fcac612bc;hp=e0f8ab24abaef190c512716cacd4ffbce1a1d7ee;hb=87bb1cb17112b1473079c9ae76117f57554e7153;hpb=38aa926349b8ab7c39920f5858d3fd3ddb1ed2b9 diff --git a/libubus.h b/libubus.h index e0f8ab2..cb575b0 100644 --- a/libubus.h +++ b/libubus.h @@ -97,7 +97,7 @@ struct ubus_context { struct { struct ubus_msghdr hdr; - char data[UBUS_MAX_MSGLEN - sizeof(struct ubus_msghdr)]; + char data[UBUS_MAX_MSGLEN]; } msgbuf; }; @@ -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);