Data Structures | Macros | Typedefs | Functions | Variables
Eo's Debug information helper.

Data Structures

struct  _Efl_Dbg_Info
 The structure for the debug info used by Eo. More...
 

Macros

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

Typedefs

typedef struct _Efl_Dbg_Info Efl_Dbg_Info
 

Functions

EOAPI void efl_dbg_info_get (Eo *obj, Efl_Dbg_Info *root_node)
 Get debug information from the object. More...
 
static Efl_Dbg_InfoEFL_DBG_INFO_LIST_APPEND (Efl_Dbg_Info *list, const char *name)
 Creates a list inside debug info list. More...
 
void efl_dbg_info_free (Efl_Dbg_Info *info)
 Frees the Efl_Dbg_Info tree. More...
 

Variables

const Eina_Value_TypeEFL_DBG_INFO_TYPE
 The Eina_Value_Type for the debug info.
 

Detailed Description

Macro Definition Documentation

◆ EFL_DBG_INFO_APPEND

#define EFL_DBG_INFO_APPEND (   LIST,
  NAME,
  TYPE,
  VALUE 
)
Value:
do { \
Efl_Dbg_Info *List = LIST; \
if (List) \
{ \
Efl_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)
Eina_Stringshare * eina_stringshare_add(const char *str)
Retrieves an instance of a string for use in a program.
Definition: eina_stringshare.c:610

Creates a new debug info into a list.

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

Referenced by evas_object_textblock_clear().

Function Documentation

◆ efl_dbg_info_get()

EOAPI void efl_dbg_info_get ( Eo obj,
Efl_Dbg_Info root_node 
)

Get debug information from the object.

Parameters
[in]root_nodeNode of the tree

Referenced by evas_object_textblock_clear().

◆ EFL_DBG_INFO_LIST_APPEND()

static Efl_Dbg_Info* EFL_DBG_INFO_LIST_APPEND ( Efl_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(), _Efl_Dbg_Info::name, and _Efl_Dbg_Info::value.

Referenced by evas_object_textblock_clear().

◆ efl_dbg_info_free()

void efl_dbg_info_free ( Efl_Dbg_Info info)