55 #if !defined(__AMXO_TYPES_H__)
56 #define __AMXO_TYPES_H__
63 #include <amxc/amxc.h>
64 #include <amxd/amxd_types.h>
65 #include <amxp/amxp_connection.h>
80 #define AMXO_FUNC(x) ((amxo_fn_ptr_t) x)
123 amxd_object_t* parent,
125 int64_t attr_bitmask,
126 amxd_object_type_t type);
129 amxd_object_t* parent,
134 amxd_object_t* parent,
138 amxd_object_t* object);
141 amxd_object_t* object,
145 amxd_object_t* object,
147 int64_t attr_bitmask,
151 amxd_object_t* object,
156 amxd_object_t* object,
157 amxd_param_t* param);
159 amxd_object_t* object,
160 amxd_function_t*
function);
163 amxd_object_t* object,
164 amxd_function_t* func,
166 int64_t attr_bitmask,
168 amxc_var_t* def_value);
171 amxd_object_t* parent,
175 amxd_object_t* object,
177 amxd_action_t action_id,
178 const char* action_name,
179 const amxc_var_t* data);
229 #define amxo_fd_read_t amxo_fd_cb_t
230 #define amxo_connection_t amxp_connection_t
void(* amxo_fn_ptr_t)(void)
void(* amxo_add_instance_t)(amxo_parser_t *parser, amxd_object_t *parent, uint32_t index, const char *name)
void(* amxo_start_end_t)(amxo_parser_t *parser)
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)
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)
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)
struct _amxo_hooks amxo_hooks_t
ssize_t(* amxo_reader_t)(amxo_parser_t *parser, char *buf, size_t max_size)
void(* amxo_include_t)(amxo_parser_t *parser, const char *file)
void(* amxo_add_param_func_t)(amxo_parser_t *parser, amxd_object_t *object, const char *name, int64_t attr_bitmask, uint32_t type)
enum _amxo_fn_type amxo_fn_type_t
void(* amxo_set_config_t)(amxo_parser_t *parser, const char *option, amxc_var_t *value)
void(* amxo_add_mib_t)(amxo_parser_t *parser, amxd_object_t *object, const char *mib)
struct _amxo_resolver amxo_resolver_t
void(* amxo_set_param_t)(amxo_parser_t *parser, amxd_object_t *object, amxd_param_t *param, amxc_var_t *value)
void(* amxo_select_object_t)(amxo_parser_t *parser, amxd_object_t *parent, const char *path)
void(* amxo_res_get_default_t)(amxo_parser_t *parser, void *priv)
void(* amxo_end_func_t)(amxo_parser_t *parser, amxd_object_t *object, amxd_function_t *function)
void(* amxo_end_object_t)(amxo_parser_t *parser, amxd_object_t *object)
void(* amxo_section_t)(amxo_parser_t *parser, int section_id)
int(* amxo_entry_point_t)(int reason, amxd_dm_t *dm, amxo_parser_t *parser)
void(* amxo_set_counter_t)(amxo_parser_t *parser, amxd_object_t *parent, const char *name)
enum _amxo_reason amxo_reason_t
struct _amxo_entry amxo_entry_t
enum _amxo_con_type amxo_con_type_t
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)
void(* amxo_res_clean_fn_t)(amxo_parser_t *parser, void *priv)
void(* amxo_fd_cb_t)(int fd, void *priv)
void(* amxo_end_param_t)(amxo_parser_t *parser, amxd_object_t *object, amxd_param_t *param)
void(* amxo_comment_t)(amxo_parser_t *parser, const char *comment)
amxo_entry_point_t entry_point
amxo_include_t start_include
amxo_set_counter_t set_counter
amxo_add_func_arg_t add_func_arg
amxo_add_instance_t add_instance
amxo_section_t end_section
amxo_add_param_func_t add_param
amxo_end_param_t end_param
amxo_section_t start_section
amxo_set_action_cb_t set_action_cb
amxo_add_param_func_t add_func
amxo_select_object_t select_object
amxo_set_config_t set_config
amxo_set_param_t set_param
amxo_end_object_t end_object
amxo_create_object_t create_object
amxo_include_t end_include
The ODL parser structure.
amxc_htable_t * resolvers
amxo_fn_ptr_t resolved_fn
amxc_astack_t object_stack
amxc_llist_t function_names
amxc_string_t * resolved_fn_name
amxc_var_t * include_stack
amxc_llist_t * entry_points
amxc_llist_t global_config
amxc_var_t * post_includes
amxc_llist_t * sync_contexts
amxo_res_get_default_t get
amxo_res_resolve_fn_t resolve
amxo_res_clean_fn_t clean