From 382a05f54d12190171b8f847773c78dc27e9b205 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 3 Jul 2014 20:58:01 +0200 Subject: [PATCH] libubus: move ubus_msghdr_data to libubus-internal.h Signed-off-by: Felix Fietkau --- libubus-internal.h | 7 +++++++ libubus.h | 7 ------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/libubus-internal.h b/libubus-internal.h index e4a5825..f6d850f 100644 --- a/libubus-internal.h +++ b/libubus-internal.h @@ -17,6 +17,13 @@ extern struct blob_buf b; extern const struct ubus_method watch_method; +static inline struct blob_attr * +ubus_msghdr_data(struct ubus_msghdr *hdr) +{ + struct ubus_msghdr_buf *hdrbuf = container_of(hdr, typeof(*hdrbuf), hdr); + return hdrbuf->data; +} + struct blob_attr **ubus_parse_msg(struct blob_attr *msg); void ubus_handle_data(struct uloop_fd *u, unsigned int events); int ubus_send_msg(struct ubus_context *ctx, uint32_t seq, diff --git a/libubus.h b/libubus.h index a63ce31..94e5f95 100644 --- a/libubus.h +++ b/libubus.h @@ -39,13 +39,6 @@ struct ubus_msghdr_buf { struct blob_attr *data; }; -static inline struct blob_attr * -ubus_msghdr_data(struct ubus_msghdr *hdr) -{ - struct ubus_msghdr_buf *hdrbuf = container_of(hdr, typeof(*hdrbuf), hdr); - return hdrbuf->data; -} - typedef void (*ubus_lookup_handler_t)(struct ubus_context *ctx, struct ubus_object_data *obj, void *priv);