libamxo
4.3.4
Object Definition Language (ODL) parsing
|
Go to the source code of this file.
Macros | |
#define | _GNU_SOURCE |
Functions | |
static void | amxo_parser_push_event (amxo_parser_t *pctx, event_id_t event) |
static amxd_status_t | amxo_cleanup_data (amxd_object_t *const object, amxd_param_t *const param, amxd_action_t reason, UNUSED const amxc_var_t *const args, UNUSED amxc_var_t *const retval, void *priv) |
static amxd_status_t | amxo_parser_set_param_action_impl (amxd_param_t *param, amxd_action_t action, amxd_action_fn_t fn, amxc_var_t *data) |
static amxd_status_t | amxo_parser_set_object_action_impl (amxd_object_t *object, amxd_action_t action, amxd_action_fn_t fn, amxc_var_t *data) |
static int | amxo_parser_set_sync_action (amxo_parser_t *pctx, amxo_action_t action, UNUSED const char *name, UNUSED amxc_var_t *data) |
static int | amxo_parser_set_param_action (amxo_parser_t *pctx, amxo_action_t action, const char *name, amxc_var_t *data) |
static int | amxo_parser_set_object_action (amxo_parser_t *pctx, amxo_action_t action, const char *name, amxc_var_t *data) |
static int64_t | amxo_attr_2_object_attr (int64_t attributes) |
static amxd_object_t * | amxo_parser_new_object (amxo_parser_t *pctx, amxd_dm_t *dm, const char *name, int64_t oattrs, amxd_object_type_t type) |
static int | amxo_parser_can_update_object (amxo_parser_t *pctx, const char *name, amxd_object_type_t type) |
static amxd_object_t * | amxo_parser_can_update_instance (amxo_parser_t *pctx, uint32_t index, const char *name, amxc_var_t *params) |
static int | amxo_parser_connect (amxo_parser_t *pctx, amxp_signal_mngr_t *const sig_mngr, const char *const signal_name, bool signal_is_regexp, const char *const expression, amxp_slot_fn_t fn) |
static amxd_object_t * | amxd_parser_add_instance_msg (amxo_parser_t *pctx, uint32_t index, const char *name, amxd_object_t *object, amxc_var_t *params) |
static void | amxo_parser_build_path_expr (amxd_object_t *object, amxc_string_t *expr) |
bool | amxo_parser_check_config (amxo_parser_t *pctx, const char *path, const char *check) |
void | amxo_parser_free_event (amxc_llist_it_t *it) |
bool | amxo_parser_check_attr (amxo_parser_t *pctx, int64_t attributes, int64_t bitmask) |
bool | amxo_parser_set_object_attrs (amxo_parser_t *pctx, uint64_t attr, bool enable) |
int | amxo_parser_create_object (amxo_parser_t *pctx, const char *name, int64_t attr_bitmask, amxd_object_type_t type) |
bool | amxo_parser_add_instance (amxo_parser_t *pctx, uint32_t index, const char *name, amxc_var_t *params) |
bool | amxo_parser_push_object (amxo_parser_t *pctx, const char *path) |
bool | amxo_parser_pop_object (amxo_parser_t *pctx) |
bool | amxo_parser_set_counter (amxo_parser_t *pctx, const char *param_name) |
int | amxo_parser_subscribe_path (amxo_parser_t *pctx, const char *event, bool event_is_regexp, const char *path, bool path_is_regexp) |
int | amxo_parser_subscribe (amxo_parser_t *pctx, const char *event, bool event_is_regexp, const char *full_expr) |
int | amxo_parser_subscribe_object (amxo_parser_t *pctx, const char *event, bool event_is_regexp, const char *full_expr) |
int | amxo_parser_set_action (amxo_parser_t *pctx, amxo_action_t action, const char *name, amxc_var_t *data) |
bool | amxo_parser_add_mib (amxo_parser_t *pctx, const char *mib_name) |
Variables | |
static int | object_actions [] |
static int | param_actions [] |
static int | sync_actions [] |
#define _GNU_SOURCE |
Definition at line 55 of file amxo_parser_dm_utils.c.
|
static |
Definition at line 400 of file amxo_parser_dm_utils.c.
|
static |
Definition at line 276 of file amxo_parser_dm_utils.c.
|
static |
Definition at line 114 of file amxo_parser_dm_utils.c.
bool amxo_parser_add_instance | ( | amxo_parser_t * | pctx, |
uint32_t | index, | ||
const char * | name, | ||
amxc_var_t * | params | ||
) |
Definition at line 563 of file amxo_parser_dm_utils.c.
bool amxo_parser_add_mib | ( | amxo_parser_t * | pctx, |
const char * | mib_name | ||
) |
Definition at line 843 of file amxo_parser_dm_utils.c.
|
static |
Definition at line 433 of file amxo_parser_dm_utils.c.
|
static |
Definition at line 336 of file amxo_parser_dm_utils.c.
|
static |
Definition at line 317 of file amxo_parser_dm_utils.c.
bool amxo_parser_check_attr | ( | amxo_parser_t * | pctx, |
int64_t | attributes, | ||
int64_t | bitmask | ||
) |
Definition at line 499 of file amxo_parser_dm_utils.c.
bool amxo_parser_check_config | ( | amxo_parser_t * | pctx, |
const char * | path, | ||
const char * | check | ||
) |
Definition at line 477 of file amxo_parser_dm_utils.c.
|
static |
Definition at line 361 of file amxo_parser_dm_utils.c.
int amxo_parser_create_object | ( | amxo_parser_t * | pctx, |
const char * | name, | ||
int64_t | attr_bitmask, | ||
amxd_object_type_t | type | ||
) |
Definition at line 520 of file amxo_parser_dm_utils.c.
void amxo_parser_free_event | ( | amxc_llist_it_t * | it | ) |
Definition at line 493 of file amxo_parser_dm_utils.c.
|
static |
Definition at line 293 of file amxo_parser_dm_utils.c.
bool amxo_parser_pop_object | ( | amxo_parser_t * | pctx | ) |
Definition at line 634 of file amxo_parser_dm_utils.c.
|
static |
Definition at line 104 of file amxo_parser_dm_utils.c.
bool amxo_parser_push_object | ( | amxo_parser_t * | pctx, |
const char * | path | ||
) |
Definition at line 598 of file amxo_parser_dm_utils.c.
int amxo_parser_set_action | ( | amxo_parser_t * | pctx, |
amxo_action_t | action, | ||
const char * | name, | ||
amxc_var_t * | data | ||
) |
Definition at line 813 of file amxo_parser_dm_utils.c.
bool amxo_parser_set_counter | ( | amxo_parser_t * | pctx, |
const char * | param_name | ||
) |
Definition at line 664 of file amxo_parser_dm_utils.c.
|
static |
Definition at line 245 of file amxo_parser_dm_utils.c.
|
static |
Definition at line 162 of file amxo_parser_dm_utils.c.
bool amxo_parser_set_object_attrs | ( | amxo_parser_t * | pctx, |
uint64_t | attr, | ||
bool | enable | ||
) |
Definition at line 514 of file amxo_parser_dm_utils.c.
|
static |
Definition at line 214 of file amxo_parser_dm_utils.c.
|
static |
Definition at line 142 of file amxo_parser_dm_utils.c.
|
static |
Definition at line 182 of file amxo_parser_dm_utils.c.
int amxo_parser_subscribe | ( | amxo_parser_t * | pctx, |
const char * | event, | ||
bool | event_is_regexp, | ||
const char * | full_expr | ||
) |
Definition at line 738 of file amxo_parser_dm_utils.c.
int amxo_parser_subscribe_object | ( | amxo_parser_t * | pctx, |
const char * | event, | ||
bool | event_is_regexp, | ||
const char * | full_expr | ||
) |
Definition at line 772 of file amxo_parser_dm_utils.c.
int amxo_parser_subscribe_path | ( | amxo_parser_t * | pctx, |
const char * | event, | ||
bool | event_is_regexp, | ||
const char * | path, | ||
bool | path_is_regexp | ||
) |
Definition at line 695 of file amxo_parser_dm_utils.c.
|
static |
Definition at line 62 of file amxo_parser_dm_utils.c.
|
static |
Definition at line 76 of file amxo_parser_dm_utils.c.
|
static |
Definition at line 90 of file amxo_parser_dm_utils.c.