Ubus
OpenWrt system message/RPC bus.
|
Go to the source code of this file.
Typedefs | |
typedef int(* | ubus_cmd_cb) (struct ubus_client *cl, struct ubus_msg_buf *ub, struct blob_attr **attr) |
Functions | |
struct blob_attr ** | ubus_parse_msg (struct blob_attr *msg, size_t len) |
static void | ubus_msg_close_fd (struct ubus_msg_buf *ub) |
static void | ubus_msg_init (struct ubus_msg_buf *ub, uint8_t type, uint16_t seq, uint32_t peer) |
static struct ubus_msg_buf * | ubus_msg_from_blob (bool shared) |
static struct ubus_msg_buf * | ubus_reply_from_blob (struct ubus_msg_buf *ub, bool shared) |
void | ubus_proto_send_msg_from_blob (struct ubus_client *cl, struct ubus_msg_buf *ub, uint8_t type) |
static bool | ubusd_send_hello (struct ubus_client *cl) |
static int | ubusd_send_pong (struct ubus_client *cl, struct ubus_msg_buf *ub, struct blob_attr **attr) |
static int | ubusd_handle_remove_object (struct ubus_client *cl, struct ubus_msg_buf *ub, struct blob_attr **attr) |
static int | ubusd_handle_add_object (struct ubus_client *cl, struct ubus_msg_buf *ub, struct blob_attr **attr) |
static void | ubusd_send_obj (struct ubus_client *cl, struct ubus_msg_buf *ub, struct ubus_object *obj) |
static int | ubus_client_cmd_queue_add (struct ubus_client *cl, struct ubus_msg_buf *msg, struct ubus_object *obj) |
static int | __ubusd_handle_lookup (struct ubus_client *cl, struct ubus_msg_buf *ub, struct blob_attr **attr, struct ubus_client_cmd *cmd) |
static int | ubusd_handle_lookup (struct ubus_client *cl, struct ubus_msg_buf *ub, struct blob_attr **attr) |
int | ubusd_cmd_lookup (struct ubus_client *cl, struct ubus_client_cmd *cmd) |
static void | ubusd_forward_invoke (struct ubus_client *cl, struct ubus_object *obj, const char *method, struct ubus_msg_buf *ub, struct blob_attr *data) |
static int | ubusd_handle_invoke (struct ubus_client *cl, struct ubus_msg_buf *ub, struct blob_attr **attr) |
static int | ubusd_handle_notify (struct ubus_client *cl, struct ubus_msg_buf *ub, struct blob_attr **attr) |
static struct ubus_client * | ubusd_get_client_by_id (uint32_t id) |
static int | ubusd_handle_response (struct ubus_client *cl, struct ubus_msg_buf *ub, struct blob_attr **attr) |
static int | ubusd_handle_add_watch (struct ubus_client *cl, struct ubus_msg_buf *ub, struct blob_attr **attr) |
static int | ubusd_handle_remove_watch (struct ubus_client *cl, struct ubus_msg_buf *ub, struct blob_attr **attr) |
void | ubusd_proto_receive_message (struct ubus_client *cl, struct ubus_msg_buf *ub) |
static int | ubusd_proto_init_retmsg (struct ubus_client *cl) |
struct ubus_client * | ubusd_proto_new_client (int fd, uloop_fd_handler cb) |
void | ubusd_proto_free_client (struct ubus_client *cl) |
void | ubus_notify_subscription (struct ubus_object *obj) |
void | ubus_notify_unsubscribe (struct ubus_subscription *s) |
static void __constructor | ubusd_proto_init (void) |
Variables | |
struct blob_buf | b |
static struct avl_tree | clients |
static struct blob_attr * | attrbuf [UBUS_ATTR_MAX] |
static const struct blob_attr_info | ubus_policy [UBUS_ATTR_MAX] |
static const ubus_cmd_cb | handlers [__UBUS_MSG_LAST] |
typedef int(* ubus_cmd_cb) (struct ubus_client *cl, struct ubus_msg_buf *ub, struct blob_attr **attr) |
Definition at line 24 of file ubusd_proto.c.
|
static |
Definition at line 204 of file ubusd_proto.c.
|
static |
Definition at line 189 of file ubusd_proto.c.
|
static |
|
static |
Definition at line 60 of file ubusd_proto.c.
|
static |
void ubus_notify_subscription | ( | struct ubus_object * | obj | ) |
Definition at line 615 of file ubusd_proto.c.
void ubus_notify_unsubscribe | ( | struct ubus_subscription * | s | ) |
Definition at line 633 of file ubusd_proto.c.
struct blob_attr** ubus_parse_msg | ( | struct blob_attr * | msg, |
size_t | len | ||
) |
Definition at line 37 of file ubusd_proto.c.
void ubus_proto_send_msg_from_blob | ( | struct ubus_client * | cl, |
struct ubus_msg_buf * | ub, | ||
uint8_t | type | ||
) |
Definition at line 78 of file ubusd_proto.c.
|
static |
Definition at line 65 of file ubusd_proto.c.
int ubusd_cmd_lookup | ( | struct ubus_client * | cl, |
struct ubus_client_cmd * | cmd | ||
) |
Definition at line 285 of file ubusd_proto.c.
|
static |
Definition at line 308 of file ubusd_proto.c.
|
static |
Definition at line 402 of file ubusd_proto.c.
|
static |
Definition at line 143 of file ubusd_proto.c.
|
static |
Definition at line 439 of file ubusd_proto.c.
|
static |
Definition at line 324 of file ubusd_proto.c.
|
static |
|
static |
Definition at line 355 of file ubusd_proto.c.
|
static |
|
static |
|
static |
Definition at line 413 of file ubusd_proto.c.
void ubusd_proto_free_client | ( | struct ubus_client * | cl | ) |
Definition at line 600 of file ubusd_proto.c.
|
static |
|
static |
Definition at line 548 of file ubusd_proto.c.
struct ubus_client* ubusd_proto_new_client | ( | int | fd, |
uloop_fd_handler | cb | ||
) |
Definition at line 564 of file ubusd_proto.c.
void ubusd_proto_receive_message | ( | struct ubus_client * | cl, |
struct ubus_msg_buf * | ub | ||
) |
Definition at line 512 of file ubusd_proto.c.
|
static |
Definition at line 94 of file ubusd_proto.c.
|
static |
Definition at line 160 of file ubusd_proto.c.
|
static |
|
static |
Definition at line 22 of file ubusd_proto.c.
struct blob_buf b |
Definition at line 1 of file ubusd_proto.c.
|
static |
Definition at line 1 of file ubusd_proto.c.
|
static |
Definition at line 499 of file ubusd_proto.c.
|
static |
Definition at line 24 of file ubusd_proto.c.