lua: ubus_lua_do_subscribe: fix copy&paste error
[project/ubus.git] / ubusd.h
diff --git a/ubusd.h b/ubusd.h
index 991a59fe04def2500e58421a37112034fe96c35f..867cde9a384bacacec2a39ec366ca8abbd670aba 100644 (file)
--- a/ubusd.h
+++ b/ubusd.h
@@ -39,6 +39,7 @@ struct ubus_msg_buf {
 struct ubus_client {
        struct ubus_id id;
        struct uloop_fd sock;
+       struct blob_buf b;
 
        uid_t uid;
        gid_t gid;
@@ -51,6 +52,7 @@ struct ubus_client {
        unsigned int txq_cur, txq_tail, txq_ofs;
 
        struct ubus_msg_buf *pending_msg;
+       struct ubus_msg_buf *retmsg;
        int pending_msg_offset;
        int pending_msg_fd;
        struct {
@@ -68,6 +70,7 @@ extern const char *ubusd_acl_dir;
 
 struct ubus_msg_buf *ubus_msg_new(void *data, int len, bool shared);
 void ubus_msg_send(struct ubus_client *cl, struct ubus_msg_buf *ub);
+ssize_t ubus_msg_writev(int fd, struct ubus_msg_buf *ub, size_t offset);
 void ubus_msg_free(struct ubus_msg_buf *ub);
 struct blob_attr **ubus_parse_msg(struct blob_attr *msg);