cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=29d4cb864b4bd0f5061cc4ff87951661a241dcdf

commit 29d4cb864b4bd0f5061cc4ff87951661a241dcdf
Author: Cedric BAIL <ced...@osg.samsung.com>
Date:   Mon Dec 18 16:10:11 2017 -0800

    ecore: make message_process and message_exists internal function.
---
 src/lib/ecore/ecore_private.h |  2 ++
 src/lib/ecore/efl_loop.c      |  8 ++++++++
 src/lib/ecore/efl_loop.eo     | 12 ------------
 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);
 
 #define EFL_LOOP_DATA efl_data_scope_get(efl_loop_main_get(EFL_LOOP_CLASS), 
EFL_LOOP_CLASS)
 
+EOAPI Eina_Bool efl_loop_message_process(Eo *obj);
+EOAPI Eina_Bool efl_loop_message_exists(Eo *obj);
 
 #undef EAPI
 #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)
    return EINA_TRUE;
 }
 
+EOAPI EFL_FUNC_BODY(efl_loop_message_process, Eina_Bool, 0);
+
 EOLIAN static Eina_Bool
 _efl_loop_message_exists(Eo *obj EINA_UNUSED, Efl_Loop_Data *pd)
 {
@@ -655,6 +657,8 @@ _efl_loop_message_exists(Eo *obj EINA_UNUSED, Efl_Loop_Data 
*pd)
    return EINA_FALSE;
 }
 
+EOAPI EFL_FUNC_BODY(efl_loop_message_exists, Eina_Bool, 0);
+
 EWAPI void
 efl_build_version_set(int vmaj, int vmin, int vmic, int revision,
                       const char *flavor, const char *build_id)
@@ -702,4 +706,8 @@ efl_loop_future_scheduler_get(Eo *obj)
    return efl_loop_future_scheduler_get(efl_loop_get(obj));
 }
 
+#define EFL_LOOP_EXTRA_OPS \
+  EFL_OBJECT_OP_FUNC(efl_loop_message_process, _efl_loop_message_process), \
+  EFL_OBJECT_OP_FUNC(efl_loop_message_exists, _efl_loop_message_exists)
+
 #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)
          }
          return: Efl.Loop.Message.Handler; [[The message handler to use.]]
       }
-      message_process {
-         [[Process all messages in the queue that have been sent by
-           Efl.Loop.Message.Handler objects and thus call the event
-           callbacks for these messages in order in the queue. There
-           should never be a need to call this method as it is
-           automatically called as part of the loop execution.]]
-         return: bool; [[True if messages existed and were called.]]
-      }
-      message_exists {
-         [[Checks if there are any messages on the queue to call.]]
-         return: bool; [[True if there are messages to call. ]]
-      }
    }
    events {
       idle,enter @restart; [[Event occurs once the main loop enters the idle 
state.]]

-- 


Reply via email to