ecore: remove efl_loop_{un,}register from .eo.
authorCedric BAIL <cedric.bail@free.fr>
Thu, 11 Jul 2019 22:34:31 +0000 (15:34 -0700)
committerSangHyeon Jade Lee <sh10233.lee@samsung.com>
Tue, 23 Jul 2019 05:04:43 +0000 (14:04 +0900)
We have to keep this as an API, but binding do not need to see it at this point.

Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D9297

src/lib/ecore/Ecore_Eo.h
src/lib/ecore/efl_loop.c
src/lib/ecore/efl_loop.eo

index 30c0a8b..433f383 100644 (file)
@@ -46,6 +46,13 @@ extern "C" {
 #include "efl_app.eo.h"
 #include "efl_appthread.eo.h"
 
+/* To be deprecated at some point */
+
+/** Please use efl_provider_register instead. */
+EAPI Eina_Bool efl_loop_register(Efl_Loop *obj, const Efl_Class *klass, const Efl_Object *provider);
+/** Please use efl_provider_unregister instead. */
+EAPI Eina_Bool efl_loop_unregister(Efl_Loop *obj, const Efl_Class *klass, const Efl_Object *provider);
+
 /**
  * @brief Quits the main loop once all the events currently on the queue have
  * been processed.
index b8a910c..3a7171c 100644 (file)
@@ -505,6 +505,8 @@ _efl_loop_register(Eo *obj, Efl_Loop_Data *pd EINA_UNUSED,
    return efl_provider_register(obj, klass, provider);
 }
 
+EFL_FUNC_BODYV(efl_loop_register, Eina_Bool, EINA_FALSE, EFL_FUNC_CALL(klass, provider), const Efl_Class *klass, const Efl_Object *provider);
+
 static Eina_Bool
 _efl_loop_unregister(Eo *obj, Efl_Loop_Data *pd EINA_UNUSED,
                      const Efl_Class *klass, const Efl_Object *provider)
@@ -512,6 +514,8 @@ _efl_loop_unregister(Eo *obj, Efl_Loop_Data *pd EINA_UNUSED,
    return efl_provider_unregister(obj, klass, provider);
 }
 
+EFL_FUNC_BODYV(efl_loop_unregister, Eina_Bool, EINA_FALSE, EFL_FUNC_CALL(klass, provider), const Efl_Class *klass, const Efl_Object *provider);
+
 void
 _efl_loop_messages_filter(Eo *obj EINA_UNUSED, Efl_Loop_Data *pd, void *handler_pd)
 {
@@ -672,7 +676,9 @@ efl_loop_future_scheduler_get(const Eo *obj)
    return NULL;
 }
 
-#define EFL_LOOP_EXTRA_OPS \
-  EFL_OBJECT_OP_FUNC(efl_loop_message_process, _efl_loop_message_process)
+#define EFL_LOOP_EXTRA_OPS                                              \
+  EFL_OBJECT_OP_FUNC(efl_loop_message_process, _efl_loop_message_process), \
+  EFL_OBJECT_OP_FUNC(efl_loop_register, _efl_loop_register),          \
+  EFL_OBJECT_OP_FUNC(efl_loop_unregister, _efl_loop_unregister)
 
 #include "efl_loop.eo.c"
index eca974b..b92e515 100644 (file)
@@ -102,22 +102,6 @@ abstract Efl.Loop extends Efl.Task
          }
          return: future<void> @owned; [[The future handle.]]
       }
-      register {
-         [[Will register a manager of a specific class to be answered by eo.provider_find.]]
-         params {
-            @in klass: const(Efl.Class); [[The class provided by the registered provider.]]
-            @in provider: const(Efl.Object); [[The provider for the newly registered class that has to provide that said Efl.Class.]]
-         }
-         return: bool; [[$true if successfully register, $false otherwise.]]
-      }
-      unregister {
-         [[Will unregister a manager of a specific class that was previously registered and answered by eo.provider_find.]]
-         params {
-            @in klass: const(Efl.Class); [[The class provided by the provider to unregister for.]]
-            @in provider: const(Efl.Object); [[The provider for the registered class to unregister.]]
-         }
-         return: bool; [[$true if successfully unregistered, $false otherwise.]]
-      }
    }
    events {
       idle,enter @restart: void; [[Event occurs once the main loop enters the idle state.]]