libamxo
4.3.4
Object Definition Language (ODL) parsing
|
#include <amxc/amxc.h>
#include <amxd/amxd_types.h>
#include <amxp/amxp_connection.h>
Go to the source code of this file.
Data Structures | |
struct | _amxo_resolver |
struct | _amxo_hooks |
struct | _amxo_entry |
struct | _amxo_parser |
The ODL parser structure. More... | |
Macros | |
#define | AMXO_FUNC(x) ((amxo_fn_ptr_t) x) |
Function ponter caster macro. More... | |
#define | amxo_fd_read_t amxo_fd_cb_t |
#define | amxo_connection_t amxp_connection_t |
Typedefs | |
typedef struct _amxo_parser | amxo_parser_t |
typedef ssize_t(* | amxo_reader_t) (amxo_parser_t *parser, char *buf, size_t max_size) |
typedef void(* | amxo_fn_ptr_t) (void) |
typedef enum _amxo_fn_type | amxo_fn_type_t |
typedef void(* | amxo_res_get_default_t) (amxo_parser_t *parser, void *priv) |
typedef amxo_fn_ptr_t(* | amxo_res_resolve_fn_t) (amxo_parser_t *parser, const char *fn_name, amxo_fn_type_t type, const char *data, void *priv) |
typedef void(* | amxo_res_clean_fn_t) (amxo_parser_t *parser, void *priv) |
typedef struct _amxo_resolver | amxo_resolver_t |
typedef void(* | amxo_comment_t) (amxo_parser_t *parser, const char *comment) |
typedef void(* | amxo_start_end_t) (amxo_parser_t *parser) |
typedef void(* | amxo_include_t) (amxo_parser_t *parser, const char *file) |
typedef void(* | amxo_section_t) (amxo_parser_t *parser, int section_id) |
typedef void(* | amxo_set_config_t) (amxo_parser_t *parser, const char *option, amxc_var_t *value) |
typedef void(* | amxo_create_object_t) (amxo_parser_t *parser, amxd_object_t *parent, const char *name, int64_t attr_bitmask, amxd_object_type_t type) |
typedef void(* | amxo_add_instance_t) (amxo_parser_t *parser, amxd_object_t *parent, uint32_t index, const char *name) |
typedef void(* | amxo_select_object_t) (amxo_parser_t *parser, amxd_object_t *parent, const char *path) |
typedef void(* | amxo_end_object_t) (amxo_parser_t *parser, amxd_object_t *object) |
typedef void(* | amxo_add_mib_t) (amxo_parser_t *parser, amxd_object_t *object, const char *mib) |
typedef void(* | amxo_add_param_func_t) (amxo_parser_t *parser, amxd_object_t *object, const char *name, int64_t attr_bitmask, uint32_t type) |
typedef void(* | amxo_set_param_t) (amxo_parser_t *parser, amxd_object_t *object, amxd_param_t *param, amxc_var_t *value) |
typedef void(* | amxo_end_param_t) (amxo_parser_t *parser, amxd_object_t *object, amxd_param_t *param) |
typedef void(* | amxo_end_func_t) (amxo_parser_t *parser, amxd_object_t *object, amxd_function_t *function) |
typedef void(* | amxo_add_func_arg_t) (amxo_parser_t *parser, amxd_object_t *object, amxd_function_t *func, const char *name, int64_t attr_bitmask, uint32_t type, amxc_var_t *def_value) |
typedef void(* | amxo_set_counter_t) (amxo_parser_t *parser, amxd_object_t *parent, const char *name) |
typedef void(* | amxo_set_action_cb_t) (amxo_parser_t *parser, amxd_object_t *object, amxd_param_t *param, amxd_action_t action_id, const char *action_name, const amxc_var_t *data) |
typedef struct _amxo_hooks | amxo_hooks_t |
typedef enum _amxo_reason | amxo_reason_t |
typedef enum _amxo_con_type | amxo_con_type_t |
typedef int(* | amxo_entry_point_t) (int reason, amxd_dm_t *dm, amxo_parser_t *parser) |
typedef struct _amxo_entry | amxo_entry_t |
typedef void(* | amxo_fd_cb_t) (int fd, void *priv) |
Enumerations | |
enum | _amxo_fn_type { amxo_function_action , amxo_function_rpc , amxo_function_event , amxo_function_ep } |
enum | _amxo_reason { AMXO_START , AMXO_STOP , AMXO_ODL_LOADED } |
enum | _amxo_con_type { AMXO_BUS , AMXO_LISTEN , AMXO_CUSTOM } |
#define amxo_connection_t amxp_connection_t |
Definition at line 230 of file amxo_types.h.
#define amxo_fd_read_t amxo_fd_cb_t |
Definition at line 229 of file amxo_types.h.
typedef void(* amxo_add_func_arg_t) (amxo_parser_t *parser, amxd_object_t *object, amxd_function_t *func, const char *name, int64_t attr_bitmask, uint32_t type, amxc_var_t *def_value) |
Definition at line 162 of file amxo_types.h.
typedef void(* amxo_add_instance_t) (amxo_parser_t *parser, amxd_object_t *parent, uint32_t index, const char *name) |
Definition at line 128 of file amxo_types.h.
typedef void(* amxo_add_mib_t) (amxo_parser_t *parser, amxd_object_t *object, const char *mib) |
Definition at line 140 of file amxo_types.h.
typedef void(* amxo_add_param_func_t) (amxo_parser_t *parser, amxd_object_t *object, const char *name, int64_t attr_bitmask, uint32_t type) |
Definition at line 144 of file amxo_types.h.
typedef void(* amxo_comment_t) (amxo_parser_t *parser, const char *comment) |
Definition at line 108 of file amxo_types.h.
typedef enum _amxo_con_type amxo_con_type_t |
typedef void(* amxo_create_object_t) (amxo_parser_t *parser, amxd_object_t *parent, const char *name, int64_t attr_bitmask, amxd_object_type_t type) |
Definition at line 122 of file amxo_types.h.
typedef void(* amxo_end_func_t) (amxo_parser_t *parser, amxd_object_t *object, amxd_function_t *function) |
Definition at line 158 of file amxo_types.h.
typedef void(* amxo_end_object_t) (amxo_parser_t *parser, amxd_object_t *object) |
Definition at line 137 of file amxo_types.h.
typedef void(* amxo_end_param_t) (amxo_parser_t *parser, amxd_object_t *object, amxd_param_t *param) |
Definition at line 155 of file amxo_types.h.
typedef int(* amxo_entry_point_t) (int reason, amxd_dm_t *dm, amxo_parser_t *parser) |
Definition at line 218 of file amxo_types.h.
typedef struct _amxo_entry amxo_entry_t |
typedef void(* amxo_fd_cb_t) (int fd, void *priv) |
Definition at line 227 of file amxo_types.h.
typedef void(* amxo_fn_ptr_t) (void) |
Definition at line 71 of file amxo_types.h.
typedef enum _amxo_fn_type amxo_fn_type_t |
typedef struct _amxo_hooks amxo_hooks_t |
typedef void(* amxo_include_t) (amxo_parser_t *parser, const char *file) |
Definition at line 112 of file amxo_types.h.
typedef struct _amxo_parser amxo_parser_t |
Definition at line 1 of file amxo_types.h.
typedef ssize_t(* amxo_reader_t) (amxo_parser_t *parser, char *buf, size_t max_size) |
Definition at line 69 of file amxo_types.h.
typedef enum _amxo_reason amxo_reason_t |
typedef void(* amxo_res_clean_fn_t) (amxo_parser_t *parser, void *priv) |
Definition at line 97 of file amxo_types.h.
typedef void(* amxo_res_get_default_t) (amxo_parser_t *parser, void *priv) |
Definition at line 89 of file amxo_types.h.
typedef amxo_fn_ptr_t(* amxo_res_resolve_fn_t) (amxo_parser_t *parser, const char *fn_name, amxo_fn_type_t type, const char *data, void *priv) |
Definition at line 91 of file amxo_types.h.
typedef struct _amxo_resolver amxo_resolver_t |
typedef void(* amxo_section_t) (amxo_parser_t *parser, int section_id) |
Definition at line 115 of file amxo_types.h.
typedef void(* amxo_select_object_t) (amxo_parser_t *parser, amxd_object_t *parent, const char *path) |
Definition at line 133 of file amxo_types.h.
typedef void(* amxo_set_action_cb_t) (amxo_parser_t *parser, amxd_object_t *object, amxd_param_t *param, amxd_action_t action_id, const char *action_name, const amxc_var_t *data) |
Definition at line 174 of file amxo_types.h.
typedef void(* amxo_set_config_t) (amxo_parser_t *parser, const char *option, amxc_var_t *value) |
Definition at line 118 of file amxo_types.h.
typedef void(* amxo_set_counter_t) (amxo_parser_t *parser, amxd_object_t *parent, const char *name) |
Definition at line 170 of file amxo_types.h.
typedef void(* amxo_set_param_t) (amxo_parser_t *parser, amxd_object_t *object, amxd_param_t *param, amxc_var_t *value) |
Definition at line 150 of file amxo_types.h.
typedef void(* amxo_start_end_t) (amxo_parser_t *parser) |
Definition at line 110 of file amxo_types.h.
enum _amxo_con_type |
Enumerator | |
---|---|
AMXO_BUS | |
AMXO_LISTEN | |
AMXO_CUSTOM |
Definition at line 212 of file amxo_types.h.
enum _amxo_fn_type |
Enumerator | |
---|---|
amxo_function_action | |
amxo_function_rpc | |
amxo_function_event | |
amxo_function_ep |
Definition at line 82 of file amxo_types.h.
enum _amxo_reason |
Enumerator | |
---|---|
AMXO_START | |
AMXO_STOP | |
AMXO_ODL_LOADED |
Definition at line 206 of file amxo_types.h.