86 amxc_var_t* paths = NULL;
88 int retval = amxd_status_unknown_error;
91 amxc_var_set_type(&args, AMXC_VAR_ID_HTABLE);
93 if((rel_path != NULL) && (*rel_path != 0)) {
94 amxc_var_add_key(cstring_t, &args,
"rel_path", rel_path);
97 amxc_var_add_key(uint32_t, &args,
"index", index);
98 amxc_var_add_key(cstring_t, &args,
"name", name);
102 when_failed(retval, exit);
103 retval =
amxb_invoke(invoke_ctx, &args, ret, NULL, NULL, timeout);
104 when_failed(retval, exit);
106 paths = GETI_ARG(ret, 0);
107 amxc_var_take_it(paths);
108 amxc_var_move(ret, paths);
109 amxc_var_delete(&paths);
112 amxc_var_clean(&args);
int amxb_new_invoke(amxb_invoke_t **invoke_ctx, amxb_bus_ctx_t *const ctx, const char *object, const char *interface, const char *method)
Prepares a remote function invocation.
void amxb_free_invoke(amxb_invoke_t **invoke_ctx)
Deletes a function invoke context, and frees allocated memory.
int amxb_invoke(amxb_invoke_t *invoke_ctx, amxc_var_t *args, amxc_var_t *ret, amxb_be_cb_fn_t fn, void *priv, int timeout)
Invokes a remote function, as defined by the function invoke context.
static amxb_bus_ctx_t * bus_ctx