Macros | Functions | Variables
Eo's Debug information helper.

Macros

#define EO_DBG_INFO_APPEND(LIST, NAME, TYPE, VALUE)
 Creates a new debug info into a list. More...
 

Functions

static Eo_Dbg_InfoEO_DBG_INFO_LIST_APPEND (Eo_Dbg_Info *list, const char *name)
 Creates a list inside debug info list. More...
 
EAPI void eo_dbg_info_free (Eo_Dbg_Info *info)
 Frees the Eo_Dbg_Info tree. More...
 

Variables

EAPI const Eina_Value_TypeEO_DBG_INFO_TYPE
 The Eina_Value_Type for the debug info.
 

Detailed Description

Macro Definition Documentation

§ EO_DBG_INFO_APPEND

#define EO_DBG_INFO_APPEND (   LIST,
  NAME,
  TYPE,
  VALUE 
)
Value:
do { \
Eo_Dbg_Info *List = LIST; \
if (List) \
{ \
Eo_Dbg_Info *Tmp = calloc(1, sizeof(*Tmp)); \
\
if (!Tmp) break; \
Tmp->name = eina_stringshare_add(NAME); \
eina_value_setup(&(Tmp->value), TYPE); \
eina_value_set(&(Tmp->value), VALUE); \
eina_value_list_pappend(&(List->value), Tmp); \
} \
} while (0)
EAPI Eina_Stringshare * eina_stringshare_add(const char *str)
Retrieve an instance of a string for use in a program.
Definition: eina_stringshare.c:610
static Eina_Bool eina_value_setup(Eina_Value *value, const Eina_Value_Type *type)
Initialize generic value storage.
static Eina_Bool eina_value_set(Eina_Value *value,...)
Set the generic value.
static Eina_Bool eina_value_list_pappend(Eina_Value *value, const void *ptr)
Append the generic value in an list from pointer.

Creates a new debug info into a list.

Parameters
[in]LISTlist where to append (Eo_Dbg_Info *)
[in]NAMEname of the parameter (const char *)
[in]TYPEtype of the parameter (Eina_Value_Type *)
[in]VALUEvalue of the parameter

Function Documentation

§ EO_DBG_INFO_LIST_APPEND()

static Eo_Dbg_Info* EO_DBG_INFO_LIST_APPEND ( Eo_Dbg_Info list,
const char *  name 
)
inlinestatic

Creates a list inside debug info list.

Parameters
[in]listlist where to append
[in]namename of the list
Returns
the new list

References eina_stringshare_add(), eina_value_list_pappend(), eina_value_list_setup(), and _Eo_Dbg_Info::value.

§ eo_dbg_info_free()

EAPI void eo_dbg_info_free ( Eo_Dbg_Info info)