libamxc  1.10.3
C Generic Data Containers
amxc_variant_type.h File Reference

Ambiorix ring buffer API header file. More...

Go to the source code of this file.

Data Structures

struct  _amxc_var_type
 A variant type structure. More...
 

Typedefs

typedef int(* amxc_var_new_fn_t) (amxc_var_t *const var)
 Variant type callback function prototype for initializing a variant of a certain type. More...
 
typedef void(* amxc_var_free_fn_t) (amxc_var_t *const var)
 Variant type callback function prototype for freeing previous allocated memory. More...
 
typedef int(* amxc_var_copy_fn_t) (amxc_var_t *const dst, const amxc_var_t *const src)
 Variant type callback function prototype for creating a copy. More...
 
typedef int(* amxc_var_move_fn_t) (amxc_var_t *const dst, amxc_var_t *const src)
 Variant type callback function prototype for moving the content. More...
 
typedef int(* amxc_var_convert_fn_t) (amxc_var_t *const dest, const amxc_var_t *const src)
 Variant type callback function prototype for dynamically converting one type to another. More...
 
typedef int(* amxc_var_compare_fn_t) (const amxc_var_t *const var1, const amxc_var_t *const var2, int *const result)
 Variant type callback function prototype comparing two variants of the same type. More...
 
typedef amxc_var_t *(* amxc_var_get_key_fn_t) (const amxc_var_t *const src, const char *const key, int flags)
 Variant type callback function prototype fetch part of variant by key. More...
 
typedef int(* amxc_var_set_key_fn_t) (amxc_var_t *const dest, amxc_var_t *const src, const char *const key, int flags)
 Variant type callback function prototype set part of variant by key. More...
 
typedef amxc_var_t *(* amxc_var_get_index_fn_t) (const amxc_var_t *const src, const int64_t index, int flags)
 Variant type callback function prototype fetch part of variant by index. More...
 
typedef int(* amxc_var_set_index_fn_t) (amxc_var_t *const dest, amxc_var_t *const src, const int64_t index, int flags)
 Variant type callback function prototype set part of variant by index. More...
 
typedef struct _amxc_var_type amxc_var_type_t
 A variant type structure. More...
 

Functions

uint32_t amxc_var_register_type (amxc_var_type_t *const type)
 Register a new variant type. More...
 
int amxc_var_unregister_type (amxc_var_type_t *const type)
 Unregisters an already registered variant type. More...
 
const char * amxc_var_get_type_name_from_id (const uint32_t type_id)
 Get the type name. More...
 
uint32_t amxc_var_get_type_id_from_name (const char *const name)
 Get the type id. More...
 
amxc_var_type_tamxc_var_get_type (unsigned int type_id)
 Get the type definition structure. More...
 

Detailed Description

Ambiorix ring buffer API header file.

Definition in file amxc_variant_type.h.