diff options
author | Petr Štetiar <ynezz@true.cz> | 2019-12-12 10:05:48 +0100 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2019-12-16 23:39:16 +0100 |
commit | c413be9b376c685e4a5b04b1d0d9d716dfbeb460 (patch) | |
tree | 634c293e2bb885841f5e6a2c2c620882ac526d89 /libubus-internal.h | |
parent | afd47189e8644aacc411628f35d098db6d971a46 (diff) | |
download | ubus-c413be9b376c685e4a5b04b1d0d9d716dfbeb460.tar.gz |
refactor ubusd.c into reusable ubusd_library
In order to allow reusability in unit testing & fuzzing.
Signed-off-by: Petr Štetiar <ynezz@true.cz>
Diffstat (limited to 'libubus-internal.h')
-rw-r--r-- | libubus-internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libubus-internal.h b/libubus-internal.h index c4067d3..8cf99b3 100644 --- a/libubus-internal.h +++ b/libubus-internal.h @@ -18,6 +18,7 @@ extern struct blob_buf b; extern const struct ubus_method watch_method; struct blob_attr **ubus_parse_msg(struct blob_attr *msg); +bool ubus_validate_hdr(struct ubus_msghdr *hdr); void ubus_handle_data(struct uloop_fd *u, unsigned int events); int ubus_send_msg(struct ubus_context *ctx, uint32_t seq, struct blob_attr *msg, int cmd, uint32_t peer, int fd); |