X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=libubus.h;h=f899ded49658aed9176931742ddcc8a7618fb3d9;hb=a9ee3ef0cf20d8a7a807d46db4dfa48e072cca51;hp=08f9c5b50b0162658b59ade08f2bcc5f315e543c;hpb=6ae17d0298a8f1c24f16a68c8d1884091fb5c39f;p=project%2Fubus.git diff --git a/libubus.h b/libubus.h index 08f9c5b..f899ded 100644 --- a/libubus.h +++ b/libubus.h @@ -34,6 +34,12 @@ struct ubus_event_handler; struct ubus_subscriber; struct ubus_notify_request; +static inline struct blob_attr * +ubus_msghdr_data(struct ubus_msghdr *hdr) +{ + return (struct blob_attr *) (hdr + 1); +} + typedef void (*ubus_lookup_handler_t)(struct ubus_context *ctx, struct ubus_object_data *obj, void *priv);