refactor ubusd.c into reusable ubusd_library
[project/ubus.git] / libubus-io.c
index 120fb605e90ad30fb5e4d0932b199d6c5328d4a7..81c1cd1309b11d8fe905a550c3f37fcbc45667dd 100644 (file)
@@ -215,7 +215,7 @@ static int recv_retry(struct ubus_context *ctx, struct iovec *iov, bool wait, in
        return total;
 }
 
-static bool ubus_validate_hdr(struct ubus_msghdr *hdr)
+bool ubus_validate_hdr(struct ubus_msghdr *hdr)
 {
        struct blob_attr *data = (struct blob_attr *) (hdr + 1);