summaryrefslogtreecommitdiff
path: root/src/lib/eo
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2017-04-21 17:58:38 +0200
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2017-04-21 17:59:32 +0200
commit3fb4bc336eb38a4539a122abd8f6c42ca37933c2 (patch)
treeabba098d977bff9e8b3df3d84dd349260e5fec76 /src/lib/eo
parentda43c63ce120708100e5205d3d29df26506ca88c (diff)
eo: hide dbg_info from eo files
Continues b780cf2af299ce17be260486bb7ab64badddbaec.
Diffstat (limited to 'src/lib/eo')
-rw-r--r--src/lib/eo/Eo.h17
-rw-r--r--src/lib/eo/efl_object.eo12
-rw-r--r--src/lib/eo/eo_base_class.c5
3 files changed, 21 insertions, 13 deletions
diff --git a/src/lib/eo/Eo.h b/src/lib/eo/Eo.h
index 6e59f38304..259e1ac37c 100644
--- a/src/lib/eo/Eo.h
+++ b/src/lib/eo/Eo.h
@@ -347,6 +347,23 @@ EOAPI Eina_Bool efl_event_callback_legacy_call(Eo *obj, const Efl_Event_Descript
347 */ 347 */
348 348
349/** 349/**
350 * @struct _Efl_Dbg_Info
351 * The structure for the debug info used by Eo.
352 */
353typedef struct _Efl_Dbg_Info
354{
355 Eina_Stringshare *name; /**< The name of the part (stringshare). */
356 Eina_Value value; /**< The value. */
357} Efl_Dbg_Info;
358
359/**
360 * @brief Get debug information from the object.
361 *
362 * @param[in] root_node Node of the tree
363 */
364EOAPI void efl_dbg_info_get(Eo *obj, Efl_Dbg_Info *root_node);
365
366/**
350 * @var EFL_DBG_INFO_TYPE 367 * @var EFL_DBG_INFO_TYPE
351 * The Eina_Value_Type for the debug info. 368 * The Eina_Value_Type for the debug info.
352 */ 369 */
diff --git a/src/lib/eo/efl_object.eo b/src/lib/eo/efl_object.eo
index f5f1d4e08e..6d0aa97bd4 100644
--- a/src/lib/eo/efl_object.eo
+++ b/src/lib/eo/efl_object.eo
@@ -8,12 +8,6 @@ struct Efl.Event.Description {
8 restart: bool; [[$true if when the event is triggered again from a callback, it should start from where it was]] 8 restart: bool; [[$true if when the event is triggered again from a callback, it should start from where it was]]
9} 9}
10 10
11struct Efl.Dbg_Info {
12 [[The structure for the debug info used by Eo.]]
13 name: stringshare; [[The name of the part (stringshare).]]
14 value: generic_value; [[The value.]]
15}
16
17abstract Efl.Object () 11abstract Efl.Object ()
18{ 12{
19 [[Abstract Efl object class]] 13 [[Abstract Efl object class]]
@@ -312,12 +306,6 @@ abstract Efl.Object ()
312 @in new_obj: Efl.Object; [[The object to emit events from]] 306 @in new_obj: Efl.Object; [[The object to emit events from]]
313 } 307 }
314 } 308 }
315 dbg_info_get {
316 [[Get debug information from the object.]]
317 params {
318 @in root_node: ptr(Efl.Dbg_Info); [[Node of the tree]]
319 }
320 }
321 children_iterator_new { 309 children_iterator_new {
322 [[Get an iterator on all childrens]] 310 [[Get an iterator on all childrens]]
323 return: free(own(iterator<Efl.Object>), eina_iterator_free) @warn_unused; [[Children iterator]] 311 return: free(own(iterator<Efl.Object>), eina_iterator_free) @warn_unused; [[Children iterator]]
diff --git a/src/lib/eo/eo_base_class.c b/src/lib/eo/eo_base_class.c
index fe3dc289a3..aafa65590a 100644
--- a/src/lib/eo/eo_base_class.c
+++ b/src/lib/eo/eo_base_class.c
@@ -757,6 +757,8 @@ _efl_object_dbg_info_get(Eo *obj EINA_UNUSED, Efl_Object_Data *pd EINA_UNUSED, E
757 return; 757 return;
758} 758}
759 759
760EOAPI EFL_VOID_FUNC_BODYV(efl_dbg_info_get, EFL_FUNC_CALL(root_node), Efl_Dbg_Info *root_node);
761
760/* Weak reference. */ 762/* Weak reference. */
761 763
762static inline size_t 764static inline size_t
@@ -1968,6 +1970,7 @@ _efl_object_future_link(Eo *obj EINA_UNUSED, Efl_Object_Data *pd, Efl_Future *li
1968 EFL_OBJECT_OP_FUNC(efl_event_callback_array_priority_add, _efl_object_event_callback_array_priority_add), \ 1970 EFL_OBJECT_OP_FUNC(efl_event_callback_array_priority_add, _efl_object_event_callback_array_priority_add), \
1969 EFL_OBJECT_OP_FUNC(efl_event_callback_array_del, _efl_object_event_callback_array_del), \ 1971 EFL_OBJECT_OP_FUNC(efl_event_callback_array_del, _efl_object_event_callback_array_del), \
1970 EFL_OBJECT_OP_FUNC(efl_event_callback_call, _efl_object_event_callback_call), \ 1972 EFL_OBJECT_OP_FUNC(efl_event_callback_call, _efl_object_event_callback_call), \
1971 EFL_OBJECT_OP_FUNC(efl_event_callback_legacy_call, _efl_object_event_callback_legacy_call) 1973 EFL_OBJECT_OP_FUNC(efl_event_callback_legacy_call, _efl_object_event_callback_legacy_call), \
1974 EFL_OBJECT_OP_FUNC(efl_dbg_info_get, _efl_object_dbg_info_get)
1972 1975
1973#include "efl_object.eo.c" 1976#include "efl_object.eo.c"