struct ubus_msg_buf *msg;
};
+struct ubus_client_cmd {
+ struct list_head list;
+ struct ubus_msg_buf *msg;
+ struct ubus_object *obj;
+};
+
struct ubus_client {
struct ubus_id id;
struct uloop_fd sock;
struct list_head objects;
+ struct list_head cmd_queue;
struct list_head tx_queue;
unsigned int txq_ofs;
unsigned int txq_len;
void ubusd_proto_free_client(struct ubus_client *cl);
void ubus_proto_send_msg_from_blob(struct ubus_client *cl, struct ubus_msg_buf *ub,
uint8_t type);
+int ubusd_cmd_lookup(struct ubus_client *cl, struct ubus_client_cmd *cmd);
typedef struct ubus_msg_buf *(*event_fill_cb)(void *priv, const char *id);
void ubusd_event_init(void);