|
Ubus
OpenWrt system message/RPC bus.
|
#include <sys/types.h>#include <sys/socket.h>#include <unistd.h>#include <libubox/blob.h>#include <libubox/blobmsg.h>#include "libubus.h"#include "libubus-internal.h"#include "ubusmsg.h"Go to the source code of this file.
Data Structures | |
| struct | ubus_pending_msg |
| struct | ubus_lookup_request |
Functions | |
| static int | ubus_cmp_id (const void *k1, const void *k2, void *ptr) |
| const char * | ubus_strerror (int error) |
| static void | ubus_queue_msg (struct ubus_context *ctx, struct ubus_msghdr_buf *buf) |
| void __hidden | ubus_process_msg (struct ubus_context *ctx, struct ubus_msghdr_buf *buf, int fd) |
| static void | ubus_process_pending_msg (struct uloop_timeout *timeout) |
| static void | ubus_lookup_cb (struct ubus_request *ureq, int type, struct blob_attr *msg) |
| int | ubus_lookup (struct ubus_context *ctx, const char *path, ubus_lookup_handler_t cb, void *priv) |
| static void | ubus_lookup_id_cb (struct ubus_request *req, int type, struct blob_attr *msg) |
| int | ubus_lookup_id (struct ubus_context *ctx, const char *path, uint32_t *id) |
| static int | ubus_event_cb (struct ubus_context *ctx, struct ubus_object *obj, struct ubus_request_data *req, const char *method, struct blob_attr *msg) |
| int | ubus_register_event_handler (struct ubus_context *ctx, struct ubus_event_handler *ev, const char *pattern) |
| int | ubus_send_event (struct ubus_context *ctx, const char *id, struct blob_attr *data) |
| static void | ubus_default_connection_lost (struct ubus_context *ctx) |
| int | ubus_connect_ctx (struct ubus_context *ctx, const char *path) |
| static void | ubus_auto_reconnect_cb (struct uloop_timeout *timeout) |
| static void | ubus_auto_disconnect_cb (struct ubus_context *ctx) |
| static void | ubus_auto_connect_cb (struct uloop_timeout *timeout) |
| void | ubus_auto_connect (struct ubus_auto_conn *conn) |
| struct ubus_context * | ubus_connect (const char *path) |
| void | ubus_shutdown (struct ubus_context *ctx) |
| void | ubus_free (struct ubus_context *ctx) |
Variables | |
| const char * | __ubus_strerror [__UBUS_STATUS_LAST] |
| struct blob_buf b | __hidden = {} |
| static const struct ubus_method | event_method |
| void ubus_auto_connect | ( | struct ubus_auto_conn * | conn | ) |
Definition at line 345 of file libubus.c.

|
static |
Definition at line 330 of file libubus.c.


|
static |
Definition at line 322 of file libubus.c.


|
static |
Definition at line 312 of file libubus.c.


|
static |
| struct ubus_context* ubus_connect | ( | const char * | path | ) |
Definition at line 351 of file libubus.c.


| int ubus_connect_ctx | ( | struct ubus_context * | ctx, |
| const char * | path | ||
| ) |
Definition at line 284 of file libubus.c.


|
static |
|
static |
Definition at line 209 of file libubus.c.
| void ubus_free | ( | struct ubus_context * | ctx | ) |
| int ubus_lookup | ( | struct ubus_context * | ctx, |
| const char * | path, | ||
| ubus_lookup_handler_t | cb, | ||
| void * | priv | ||
| ) |
Definition at line 161 of file libubus.c.


|
static |
Definition at line 141 of file libubus.c.


| int ubus_lookup_id | ( | struct ubus_context * | ctx, |
| const char * | path, | ||
| uint32_t * | id | ||
| ) |
Definition at line 192 of file libubus.c.


|
static |
| void __hidden ubus_process_msg | ( | struct ubus_context * | ctx, |
| struct ubus_msghdr_buf * | buf, | ||
| int | fd | ||
| ) |
Definition at line 93 of file libubus.c.


|
static |
Definition at line 120 of file libubus.c.


|
static |
| int ubus_register_event_handler | ( | struct ubus_context * | ctx, |
| struct ubus_event_handler * | ev, | ||
| const char * | pattern | ||
| ) |
Definition at line 225 of file libubus.c.


| int ubus_send_event | ( | struct ubus_context * | ctx, |
| const char * | id, | ||
| struct blob_attr * | data | ||
| ) |
| void ubus_shutdown | ( | struct ubus_context * | ctx | ) |
| const char* ubus_strerror | ( | int | error | ) |
| const char* __ubus_strerror[__UBUS_STATUS_LAST] |
|
static |