summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2017-12-18 16:10:11 -0800
committerCedric BAIL <cedric@osg.samsung.com>2017-12-18 16:10:11 -0800
commit29d4cb864b4bd0f5061cc4ff87951661a241dcdf (patch)
treefdc3dd9a769b08ed3bcedbc552f29d0a9c4a8a28 /src/lib
parent03e77ea3611144b1f3cfebcf84580afd4ba65d89 (diff)
ecore: make message_process and message_exists internal function.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/ecore/ecore_private.h2
-rw-r--r--src/lib/ecore/efl_loop.c8
-rw-r--r--src/lib/ecore/efl_loop.eo12
3 files changed, 10 insertions, 12 deletions
diff --git a/src/lib/ecore/ecore_private.h b/src/lib/ecore/ecore_private.h
index d9a44ce989..2d65477bb7 100644
--- a/src/lib/ecore/ecore_private.h
+++ b/src/lib/ecore/ecore_private.h
@@ -489,6 +489,8 @@ void ecore_loop_promise_fulfill(Efl_Promise *p);
489 489
490#define EFL_LOOP_DATA efl_data_scope_get(efl_loop_main_get(EFL_LOOP_CLASS), EFL_LOOP_CLASS) 490#define EFL_LOOP_DATA efl_data_scope_get(efl_loop_main_get(EFL_LOOP_CLASS), EFL_LOOP_CLASS)
491 491
492EOAPI Eina_Bool efl_loop_message_process(Eo *obj);
493EOAPI Eina_Bool efl_loop_message_exists(Eo *obj);
492 494
493#undef EAPI 495#undef EAPI
494#define EAPI 496#define EAPI
diff --git a/src/lib/ecore/efl_loop.c b/src/lib/ecore/efl_loop.c
index 1cd808d010..79509703b2 100644
--- a/src/lib/ecore/efl_loop.c
+++ b/src/lib/ecore/efl_loop.c
@@ -648,6 +648,8 @@ _efl_loop_message_process(Eo *obj, Efl_Loop_Data *pd)
648 return EINA_TRUE; 648 return EINA_TRUE;
649} 649}
650 650
651EOAPI EFL_FUNC_BODY(efl_loop_message_process, Eina_Bool, 0);
652
651EOLIAN static Eina_Bool 653EOLIAN static Eina_Bool
652_efl_loop_message_exists(Eo *obj EINA_UNUSED, Efl_Loop_Data *pd) 654_efl_loop_message_exists(Eo *obj EINA_UNUSED, Efl_Loop_Data *pd)
653{ 655{
@@ -655,6 +657,8 @@ _efl_loop_message_exists(Eo *obj EINA_UNUSED, Efl_Loop_Data *pd)
655 return EINA_FALSE; 657 return EINA_FALSE;
656} 658}
657 659
660EOAPI EFL_FUNC_BODY(efl_loop_message_exists, Eina_Bool, 0);
661
658EWAPI void 662EWAPI void
659efl_build_version_set(int vmaj, int vmin, int vmic, int revision, 663efl_build_version_set(int vmaj, int vmin, int vmic, int revision,
660 const char *flavor, const char *build_id) 664 const char *flavor, const char *build_id)
@@ -702,4 +706,8 @@ efl_loop_future_scheduler_get(Eo *obj)
702 return efl_loop_future_scheduler_get(efl_loop_get(obj)); 706 return efl_loop_future_scheduler_get(efl_loop_get(obj));
703} 707}
704 708
709#define EFL_LOOP_EXTRA_OPS \
710 EFL_OBJECT_OP_FUNC(efl_loop_message_process, _efl_loop_message_process), \
711 EFL_OBJECT_OP_FUNC(efl_loop_message_exists, _efl_loop_message_exists)
712
705#include "efl_loop.eo.c" 713#include "efl_loop.eo.c"
diff --git a/src/lib/ecore/efl_loop.eo b/src/lib/ecore/efl_loop.eo
index df39a642b1..b238dee260 100644
--- a/src/lib/ecore/efl_loop.eo
+++ b/src/lib/ecore/efl_loop.eo
@@ -139,18 +139,6 @@ class Efl.Loop (Efl.Object)
139 } 139 }
140 return: Efl.Loop.Message.Handler; [[The message handler to use.]] 140 return: Efl.Loop.Message.Handler; [[The message handler to use.]]
141 } 141 }
142 message_process {
143 [[Process all messages in the queue that have been sent by
144 Efl.Loop.Message.Handler objects and thus call the event
145 callbacks for these messages in order in the queue. There
146 should never be a need to call this method as it is
147 automatically called as part of the loop execution.]]
148 return: bool; [[True if messages existed and were called.]]
149 }
150 message_exists {
151 [[Checks if there are any messages on the queue to call.]]
152 return: bool; [[True if there are messages to call. ]]
153 }
154 } 142 }
155 events { 143 events {
156 idle,enter @restart; [[Event occurs once the main loop enters the idle state.]] 144 idle,enter @restart; [[Event occurs once the main loop enters the idle state.]]