55 #include <sys/resource.h>
56 #include <sys/types.h>
75 #define UNUSED __attribute__((unused))
#define cstring_t
Convenience macro.
#define AMXC_VAR_FLAG_NO_INDEX
Only search by key and not by index. This flag can be used with amxc_var_get_path function.
#define AMXC_VAR_FLAG_DEFAULT
The default flag, do not copy, use variant as is.
#define AMXC_VAR_ID_HTABLE
Ambiorix Hash Table variant id.
#define amxc_var_add_key(type, var, key, data)
Convenience macro for adding a variant to composite variant type.
int amxc_var_set_type(amxc_var_t *const var, const uint32_t type)
Change the variant data type.
amxc_var_t * amxc_var_get_path(const amxc_var_t *const var, const char *const path, const int flags)
Retrieves the variant at the given path of a composite variant.
int amxc_var_new(amxc_var_t **var)
Allocates a variant and initializes it to the null variant type.
void amxc_var_delete(amxc_var_t **var)
Frees the previously allocated variant.
The hash table structure.
The variant struct definition.
static amxc_var_t * second
int test_var_path_teardown(__attribute__((unused)) void **state)
static amxc_var_t * first
int test_var_path_setup(__attribute__((unused)) void **state)
static amxc_var_t * contact
void test_get_var_path_returns_null_when_key_not_found(__attribute__((unused)) void **state)
static amxc_var_t * device
static amxc_var_t * phonebook