libamxo  4.3.4
Object Definition Language (ODL) parsing
amxo_types.h File Reference
#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 }
 

Macro Definition Documentation

◆ amxo_connection_t

#define amxo_connection_t   amxp_connection_t

Definition at line 230 of file amxo_types.h.

◆ amxo_fd_read_t

#define amxo_fd_read_t   amxo_fd_cb_t

Definition at line 229 of file amxo_types.h.

Typedef Documentation

◆ amxo_add_func_arg_t

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.

◆ amxo_add_instance_t

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.

◆ amxo_add_mib_t

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.

◆ amxo_add_param_func_t

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.

◆ amxo_comment_t

typedef void(* amxo_comment_t) (amxo_parser_t *parser, const char *comment)

Definition at line 108 of file amxo_types.h.

◆ amxo_con_type_t

◆ amxo_create_object_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.

◆ amxo_end_func_t

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.

◆ amxo_end_object_t

typedef void(* amxo_end_object_t) (amxo_parser_t *parser, amxd_object_t *object)

Definition at line 137 of file amxo_types.h.

◆ amxo_end_param_t

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.

◆ amxo_entry_point_t

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.

◆ amxo_entry_t

typedef struct _amxo_entry amxo_entry_t

◆ amxo_fd_cb_t

typedef void(* amxo_fd_cb_t) (int fd, void *priv)

Definition at line 227 of file amxo_types.h.

◆ amxo_fn_ptr_t

typedef void(* amxo_fn_ptr_t) (void)

Definition at line 71 of file amxo_types.h.

◆ amxo_fn_type_t

◆ amxo_hooks_t

typedef struct _amxo_hooks amxo_hooks_t

◆ amxo_include_t

typedef void(* amxo_include_t) (amxo_parser_t *parser, const char *file)

Definition at line 112 of file amxo_types.h.

◆ amxo_parser_t

typedef struct _amxo_parser amxo_parser_t

Definition at line 1 of file amxo_types.h.

◆ amxo_reader_t

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.

◆ amxo_reason_t

◆ amxo_res_clean_fn_t

typedef void(* amxo_res_clean_fn_t) (amxo_parser_t *parser, void *priv)

Definition at line 97 of file amxo_types.h.

◆ amxo_res_get_default_t

typedef void(* amxo_res_get_default_t) (amxo_parser_t *parser, void *priv)

Definition at line 89 of file amxo_types.h.

◆ amxo_res_resolve_fn_t

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.

◆ amxo_resolver_t

◆ amxo_section_t

typedef void(* amxo_section_t) (amxo_parser_t *parser, int section_id)

Definition at line 115 of file amxo_types.h.

◆ amxo_select_object_t

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.

◆ amxo_set_action_cb_t

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.

◆ amxo_set_config_t

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.

◆ amxo_set_counter_t

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.

◆ amxo_set_param_t

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.

◆ amxo_start_end_t

typedef void(* amxo_start_end_t) (amxo_parser_t *parser)

Definition at line 110 of file amxo_types.h.

Enumeration Type Documentation

◆ _amxo_con_type

Enumerator
AMXO_BUS 
AMXO_LISTEN 
AMXO_CUSTOM 

Definition at line 212 of file amxo_types.h.

212  {
213  AMXO_BUS,
214  AMXO_LISTEN,
215  AMXO_CUSTOM,
enum _amxo_con_type amxo_con_type_t
@ AMXO_CUSTOM
Definition: amxo_types.h:215
@ AMXO_LISTEN
Definition: amxo_types.h:214
@ AMXO_BUS
Definition: amxo_types.h:213

◆ _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.

82  {
enum _amxo_fn_type amxo_fn_type_t
@ amxo_function_ep
Definition: amxo_types.h:86
@ amxo_function_rpc
Definition: amxo_types.h:84
@ amxo_function_event
Definition: amxo_types.h:85
@ amxo_function_action
Definition: amxo_types.h:83

◆ _amxo_reason

Enumerator
AMXO_START 
AMXO_STOP 
AMXO_ODL_LOADED 

Definition at line 206 of file amxo_types.h.

206  {
207  AMXO_START,
208  AMXO_STOP,
210 } amxo_reason_t;
enum _amxo_reason amxo_reason_t
@ AMXO_ODL_LOADED
Definition: amxo_types.h:209
@ AMXO_START
Definition: amxo_types.h:207
@ AMXO_STOP
Definition: amxo_types.h:208