17 #include <libubox/list.h>
18 #include <libubox/uloop.h>
19 #include <libubox/blobmsg.h>
26 #define UBUS_OBJ_HASH_BITS 4
27 #define UBUS_CLIENT_MAX_TXQ_LEN UBUS_MAX_MSGLEN
29 extern struct blob_buf
b;
40 struct list_head
list;
45 struct list_head
list;
73 struct blob_attr
data;
78 struct list_head
list;
89 struct blob_attr **
ubus_parse_msg(
struct blob_attr *msg,
size_t len);
98 typedef struct ubus_msg_buf *(*event_fill_cb)(
void *priv,
const char *id);
int(* cb)(struct ubus_context *ctx, int argc, char **argv)
struct ubus_msg_buf * msg
struct ubus_msg_buf * retmsg
struct ubus_msg_buf * pending_msg
struct list_head cmd_queue
struct list_head tx_queue
struct ubus_client::@7 hdrbuf
struct ubus_msg_buf * msg
void ubusd_event_init(void)
void ubusd_monitor_init(void)
void ubus_msg_free(struct ubus_msg_buf *ub)
const char * ubusd_acl_dir
struct ubus_client * ubusd_proto_new_client(int fd, uloop_fd_handler cb)
void ubusd_send_obj_event(struct ubus_object *obj, bool add)
struct ubus_msg_buf * ubus_msg_new(void *data, int len, bool shared)
int ubusd_cmd_lookup(struct ubus_client *cl, struct ubus_client_cmd *cmd)
void ubusd_acl_init(void)
int ubusd_send_event(struct ubus_client *cl, const char *id, event_fill_cb fill_cb, void *cb_priv)
void ubusd_monitor_message(struct ubus_client *cl, struct ubus_msg_buf *ub, bool send)
void ubus_msg_list_free(struct ubus_msg_buf_list *ubl)
void ubusd_event_cleanup_object(struct ubus_object *obj)
struct ubus_msg_buf *(* event_fill_cb)(void *priv, const char *id)
void ubusd_proto_free_client(struct ubus_client *cl)
void ubus_msg_send(struct ubus_client *cl, struct ubus_msg_buf *ub)
struct blob_attr ** ubus_parse_msg(struct blob_attr *msg, size_t len)
void ubusd_monitor_disconnect(struct ubus_client *cl)
void ubus_proto_send_msg_from_blob(struct ubus_client *cl, struct ubus_msg_buf *ub, uint8_t type)
void ubusd_proto_receive_message(struct ubus_client *cl, struct ubus_msg_buf *ub)
ssize_t ubus_msg_writev(int fd, struct ubus_msg_buf *ub, size_t offset)