summaryrefslogtreecommitdiff
path: root/src/lib/ecore
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2019-07-11 15:34:31 -0700
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-07-17 21:57:58 +0200
commit83700fe13c495193d72c95e906c0866e39c6e5c9 (patch)
treecbf538fc4fcf41c7ebc69beb0d94af5653af10a5 /src/lib/ecore
parente0ee318fe11996b3dbbc2b5080349f0548c9fc52 (diff)
ecore: remove efl_loop_{un,}register from .eo.
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
Diffstat (limited to 'src/lib/ecore')
-rw-r--r--src/lib/ecore/Ecore_Eo.h7
-rw-r--r--src/lib/ecore/efl_loop.c10
-rw-r--r--src/lib/ecore/efl_loop.eo16
3 files changed, 15 insertions, 18 deletions
diff --git a/src/lib/ecore/Ecore_Eo.h b/src/lib/ecore/Ecore_Eo.h
index 363868c1a4..22c9e38f3c 100644
--- a/src/lib/ecore/Ecore_Eo.h
+++ b/src/lib/ecore/Ecore_Eo.h
@@ -42,6 +42,13 @@
42#include "efl_app.eo.h" 42#include "efl_app.eo.h"
43#include "efl_appthread.eo.h" 43#include "efl_appthread.eo.h"
44 44
45/* To be deprecated at some point */
46
47/** Please use efl_provider_register instead. */
48EAPI Eina_Bool efl_loop_register(Efl_Loop *obj, const Efl_Class *klass, const Efl_Object *provider);
49/** Please use efl_provider_unregister instead. */
50EAPI Eina_Bool efl_loop_unregister(Efl_Loop *obj, const Efl_Class *klass, const Efl_Object *provider);
51
45/** 52/**
46 * @brief Quits the main loop once all the events currently on the queue have 53 * @brief Quits the main loop once all the events currently on the queue have
47 * been processed. 54 * been processed.
diff --git a/src/lib/ecore/efl_loop.c b/src/lib/ecore/efl_loop.c
index b8a910cc8a..3a7171c565 100644
--- a/src/lib/ecore/efl_loop.c
+++ b/src/lib/ecore/efl_loop.c
@@ -505,6 +505,8 @@ _efl_loop_register(Eo *obj, Efl_Loop_Data *pd EINA_UNUSED,
505 return efl_provider_register(obj, klass, provider); 505 return efl_provider_register(obj, klass, provider);
506} 506}
507 507
508EFL_FUNC_BODYV(efl_loop_register, Eina_Bool, EINA_FALSE, EFL_FUNC_CALL(klass, provider), const Efl_Class *klass, const Efl_Object *provider);
509
508static Eina_Bool 510static Eina_Bool
509_efl_loop_unregister(Eo *obj, Efl_Loop_Data *pd EINA_UNUSED, 511_efl_loop_unregister(Eo *obj, Efl_Loop_Data *pd EINA_UNUSED,
510 const Efl_Class *klass, const Efl_Object *provider) 512 const Efl_Class *klass, const Efl_Object *provider)
@@ -512,6 +514,8 @@ _efl_loop_unregister(Eo *obj, Efl_Loop_Data *pd EINA_UNUSED,
512 return efl_provider_unregister(obj, klass, provider); 514 return efl_provider_unregister(obj, klass, provider);
513} 515}
514 516
517EFL_FUNC_BODYV(efl_loop_unregister, Eina_Bool, EINA_FALSE, EFL_FUNC_CALL(klass, provider), const Efl_Class *klass, const Efl_Object *provider);
518
515void 519void
516_efl_loop_messages_filter(Eo *obj EINA_UNUSED, Efl_Loop_Data *pd, void *handler_pd) 520_efl_loop_messages_filter(Eo *obj EINA_UNUSED, Efl_Loop_Data *pd, void *handler_pd)
517{ 521{
@@ -672,7 +676,9 @@ efl_loop_future_scheduler_get(const Eo *obj)
672 return NULL; 676 return NULL;
673} 677}
674 678
675#define EFL_LOOP_EXTRA_OPS \ 679#define EFL_LOOP_EXTRA_OPS \
676 EFL_OBJECT_OP_FUNC(efl_loop_message_process, _efl_loop_message_process) 680 EFL_OBJECT_OP_FUNC(efl_loop_message_process, _efl_loop_message_process), \
681 EFL_OBJECT_OP_FUNC(efl_loop_register, _efl_loop_register), \
682 EFL_OBJECT_OP_FUNC(efl_loop_unregister, _efl_loop_unregister)
677 683
678#include "efl_loop.eo.c" 684#include "efl_loop.eo.c"
diff --git a/src/lib/ecore/efl_loop.eo b/src/lib/ecore/efl_loop.eo
index eca974bd59..b92e515bb9 100644
--- a/src/lib/ecore/efl_loop.eo
+++ b/src/lib/ecore/efl_loop.eo
@@ -102,22 +102,6 @@ abstract Efl.Loop extends Efl.Task
102 } 102 }
103 return: future<void> @owned; [[The future handle.]] 103 return: future<void> @owned; [[The future handle.]]
104 } 104 }
105 register {
106 [[Will register a manager of a specific class to be answered by eo.provider_find.]]
107 params {
108 @in klass: const(Efl.Class); [[The class provided by the registered provider.]]
109 @in provider: const(Efl.Object); [[The provider for the newly registered class that has to provide that said Efl.Class.]]
110 }
111 return: bool; [[$true if successfully register, $false otherwise.]]
112 }
113 unregister {
114 [[Will unregister a manager of a specific class that was previously registered and answered by eo.provider_find.]]
115 params {
116 @in klass: const(Efl.Class); [[The class provided by the provider to unregister for.]]
117 @in provider: const(Efl.Object); [[The provider for the registered class to unregister.]]
118 }
119 return: bool; [[$true if successfully unregistered, $false otherwise.]]
120 }
121 } 105 }
122 events { 106 events {
123 idle,enter @restart: void; [[Event occurs once the main loop enters the idle state.]] 107 idle,enter @restart: void; [[Event occurs once the main loop enters the idle state.]]