summaryrefslogtreecommitdiff
path: root/libubus.h
diff options
context:
space:
mode:
Diffstat (limited to 'libubus.h')
-rw-r--r--libubus.h6
1 files changed, 6 insertions, 0 deletions
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);