#include <stdlib.h>
#include <amxc/amxc.h>
#include <amxp/amxp.h>
#include <amxd/amxd_common.h>
#include <amxd/amxd_dm.h>
#include <amxd/amxd_object.h>
#include <amxd/amxd_path.h>
#include <amxb/amxb.h>
#include <amxb/amxb_operators.h>
#include "amxb/amxb_be_intf.h"
#include "amxb_priv.h"
Go to the source code of this file.
◆ amxb_resolve_t
◆ amxb_ba_get_all_matching()
static void amxb_ba_get_all_matching |
( |
amxd_path_t * |
path, |
|
|
amxc_var_t * |
ret |
|
) |
| |
|
static |
Definition at line 93 of file amxb_expr_funcs.c.
100 amxc_var_init(&args);
101 amxc_var_set_type(&args, AMXC_VAR_ID_HTABLE);
105 amxc_var_clean(&args);
static int amxb_ba_resolve_path(amxb_bus_ctx_t *bus_ctx, UNUSED const amxc_var_t *args, void *priv)
int amxb_be_for_all_connections(amxb_be_task_fn_t fn, const amxc_var_t *args, void *priv)
Calls a function on all open connections.
◆ amxb_ba_resolve_path()
static int amxb_ba_resolve_path |
( |
amxb_bus_ctx_t * |
bus_ctx, |
|
|
UNUSED const amxc_var_t * |
args, |
|
|
void * |
priv |
|
) |
| |
|
static |
Definition at line 76 of file amxb_expr_funcs.c.
#define AMXB_BE_DISCOVER_RESOLVE
int amxb_resolve(amxb_bus_ctx_t *bus_ctx, amxd_path_t *obj_path, amxc_var_t *ret_val)
uint32_t PRIVATE amxb_be_get_capabilities(amxb_bus_ctx_t *bus_ctx)
static amxb_bus_ctx_t * bus_ctx
◆ amxb_ba_value_spath()
static amxp_expr_status_t amxb_ba_value_spath |
( |
UNUSED amxp_expr_t * |
expr, |
|
|
amxc_var_t * |
args, |
|
|
amxc_var_t * |
ret |
|
) |
| |
|
static |
Definition at line 108 of file amxb_expr_funcs.c.
112 amxp_expr_status_t status = amxp_expr_status_invalid_value;
113 amxc_llist_it_t* it = amxc_llist_get_first(&args->data.vl);
114 amxc_var_t* data = amxc_var_from_llist_it(it);
115 const char* str_path = NULL;
118 amxd_path_init(&path, NULL);
121 when_true(amxc_var_type_of(data) != AMXC_VAR_ID_CSTRING, exit);
123 str_path = amxc_var_constcast(cstring_t, data);
124 when_failed(amxd_path_setf(&path,
false,
"%s", str_path), exit);
126 amxc_var_set_type(ret, AMXC_VAR_ID_LIST);
129 status = amxp_expr_status_ok;
132 amxd_path_clean(&path);
static void amxb_ba_get_all_matching(amxd_path_t *path, amxc_var_t *ret)
◆ CONSTRUCTOR_LVL()
Definition at line 136 of file amxb_expr_funcs.c.
static amxp_expr_status_t amxb_ba_value_spath(UNUSED amxp_expr_t *expr, amxc_var_t *args, amxc_var_t *ret)