Go to the source code of this file.
◆ test_add_dummy_types()
Definition at line 190 of file variant_dummy_types.c.
uint32_t PRIVATE amxc_var_add_type(amxc_var_type_t *const type, const uint32_t index)
#define AMXC_VAR_ID_CUSTOM_BASE
Base variant id for custom variants.
uint32_t amxc_var_register_type(amxc_var_type_t *const type)
Register a new variant type.
static amxc_var_type_t * dummies[AMXC_VAR_ID_CUSTOM_BASE+1]
static amxc_var_type_t dummy_custom_t
◆ test_remove_dummy_types()
static DESTRUCTOR void test_remove_dummy_types |
( |
| ) |
|
|
static |
Definition at line 200 of file variant_dummy_types.c.
int PRIVATE amxc_var_remove_type(amxc_var_type_t *const type)
int amxc_var_unregister_type(amxc_var_type_t *const type)
Unregisters an already registered variant type.
◆ dummies
Initial value:= {
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
}
static amxc_var_type_t dummy_int8_t
static amxc_var_type_t dummy_int16_t
static amxc_var_type_t dummy_double_t
static amxc_var_type_t dummy_uint8_t
static amxc_var_type_t dummy_float_t
static amxc_var_type_t dummy_uint16_t
static amxc_var_type_t dummy_fd_t
static amxc_var_type_t dummy_int32_t
static amxc_var_type_t dummy_uint32_t
Definition at line 171 of file variant_dummy_types.c.
◆ dummy_custom_t
Initial value:=
{
.init = NULL,
.del = NULL,
.copy = NULL,
.convert_from = NULL,
.convert_to = NULL,
.compare = NULL,
.name = "dummy_custom_t"
}
Definition at line 160 of file variant_dummy_types.c.
◆ dummy_double_t
Initial value:=
{
.init = NULL,
.del = NULL,
.copy = NULL,
.convert_from = NULL,
.convert_to = NULL,
.compare = NULL,
}
#define AMXC_VAR_NAME_DOUBLE
Provides a name for variant id AMXC_VAR_ID_DOUBLE.
Definition at line 138 of file variant_dummy_types.c.
◆ dummy_fd_t
Initial value:=
{
.init = NULL,
.del = NULL,
.copy = NULL,
.convert_from = NULL,
.convert_to = NULL,
.compare = NULL,
}
#define AMXC_VAR_NAME_FD
Provides a name for variant id AMXC_VAR_ID_FD.
Definition at line 149 of file variant_dummy_types.c.
◆ dummy_float_t
Initial value:=
{
.init = NULL,
.del = NULL,
.copy = NULL,
.convert_from = NULL,
.convert_to = NULL,
.compare = NULL,
}
#define AMXC_VAR_NAME_FLOAT
Provides a name for variant id AMXC_VAR_ID_FLOAT.
Definition at line 127 of file variant_dummy_types.c.
◆ dummy_int16_t
Initial value:=
{
.init = NULL,
.del = NULL,
.copy = NULL,
.convert_from = NULL,
.convert_to = NULL,
.compare = NULL,
}
#define AMXC_VAR_NAME_INT16
Provides a name for variant id AMXC_VAR_ID_INT16.
Definition at line 72 of file variant_dummy_types.c.
◆ dummy_int32_t
Initial value:=
{
.init = NULL,
.del = NULL,
.copy = NULL,
.convert_from = NULL,
.convert_to = NULL,
.compare = NULL,
}
#define AMXC_VAR_NAME_INT32
Provides a name for variant id AMXC_VAR_ID_INT32.
Definition at line 83 of file variant_dummy_types.c.
◆ dummy_int8_t
Initial value:=
{
.init = NULL,
.del = NULL,
.copy = NULL,
.convert_from = NULL,
.convert_to = NULL,
.compare = NULL,
}
#define AMXC_VAR_NAME_INT8
Provides a name for variant id AMXC_VAR_ID_INT8.
Definition at line 61 of file variant_dummy_types.c.
◆ dummy_uint16_t
Initial value:=
{
.init = NULL,
.del = NULL,
.copy = NULL,
.convert_from = NULL,
.convert_to = NULL,
.compare = NULL,
}
#define AMXC_VAR_NAME_UINT16
Provides a name for variant id AMXC_VAR_ID_UINT16.
Definition at line 105 of file variant_dummy_types.c.
◆ dummy_uint32_t
Initial value:=
{
.init = NULL,
.del = NULL,
.copy = NULL,
.convert_from = NULL,
.convert_to = NULL,
.compare = NULL,
}
#define AMXC_VAR_NAME_UINT32
Provides a name for variant id AMXC_VAR_ID_UINT32.
Definition at line 116 of file variant_dummy_types.c.
◆ dummy_uint8_t
Initial value:=
{
.init = NULL,
.del = NULL,
.copy = NULL,
.convert_from = NULL,
.convert_to = NULL,
.compare = NULL,
}
#define AMXC_VAR_NAME_UINT8
Provides a name for variant id AMXC_VAR_ID_UINT8.
Definition at line 94 of file variant_dummy_types.c.