86 int retval = amxd_status_unknown_error;
87 amxc_var_t* args = NULL;
88 amxc_string_t full_path;
90 amxc_string_init(&full_path, 0);
92 amxc_var_set_type(args, AMXC_VAR_ID_HTABLE);
94 if(search_path != NULL) {
95 amxc_var_add_key(cstring_t, args,
"rel_path", search_path);
97 if((filter != NULL) && (*filter != 0)) {
98 amxc_var_add_key(cstring_t, args,
"filter", filter);
100 amxc_var_add_key(int32_t, args,
"depth", depth);
104 when_failed(retval, exit);
105 retval =
amxb_invoke(invoke_ctx, args, ret, NULL, NULL, timeout);
108 amxc_string_clean(&full_path);
109 amxc_var_delete(&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