57 #include <amxc/amxc.h>
58 #include <amxp/amxp.h>
60 #include <amxd/amxd_common.h>
61 #include <amxd/amxd_dm.h>
62 #include <amxd/amxd_object.h>
63 #include <amxd/amxd_path.h>
77 UNUSED
const amxc_var_t* args,
100 amxc_var_init(&args);
101 amxc_var_set_type(&args, AMXC_VAR_ID_HTABLE);
105 amxc_var_clean(&args);
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);
Ambiorix bus agnostic API header file.
Ambiorix Bus Backend Interface.
#define AMXB_BE_DISCOVER_RESOLVE
static void amxb_ba_get_all_matching(amxd_path_t *path, amxc_var_t *ret)
static amxp_expr_status_t amxb_ba_value_spath(UNUSED amxp_expr_t *expr, amxc_var_t *args, amxc_var_t *ret)
struct _amxb_resolve amxb_resolve_t
static int amxb_ba_resolve_path(amxb_bus_ctx_t *bus_ctx, UNUSED const amxc_var_t *args, void *priv)
Ambiorix Bus Agnostic Data Model Operators API.
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)
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.
static amxb_bus_ctx_t * bus_ctx