X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fubus.git;a=blobdiff_plain;f=ubusd.h;h=4d879201e2f5b6bf17cbba072b89f83ad612d35f;hp=5031ed455dd0c97dc948b92c4c238f7d2aa233ce;hb=HEAD;hpb=83461b97917d5a6a49357e9c981a9de840af5b6e diff --git a/ubusd.h b/ubusd.h index 5031ed4..4d87920 100644 --- 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 { @@ -67,7 +69,7 @@ struct ubus_path { 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, bool free); +void ubus_msg_send(struct ubus_client *cl, struct ubus_msg_buf *ub); void ubus_msg_free(struct ubus_msg_buf *ub); struct blob_attr **ubus_parse_msg(struct blob_attr *msg);