summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2018-01-11 11:21:55 -0800
committerCedric BAIL <cedric@osg.samsung.com>2018-01-12 09:37:47 -0800
commite90a9f3eef68c1c625a217443d795ff9504c8d6c (patch)
treedfa4eb4b2d2ba5dea5883cbede5a3f24c93e0e36
parentf5a5609c277504692590117228474ddd657606ac (diff)
Revert "promise: Add even simpler helper for main loop promise creation"
This reverts commit e931fd698d26b8bec0e34239d2f79c059b339a51.
-rw-r--r--src/lib/ecore/Ecore_Eo.h12
-rw-r--r--src/lib/ecore/efl_loop.c10
2 files changed, 0 insertions, 22 deletions
diff --git a/src/lib/ecore/Ecore_Eo.h b/src/lib/ecore/Ecore_Eo.h
index d1da269f30..eccb1e105f 100644
--- a/src/lib/ecore/Ecore_Eo.h
+++ b/src/lib/ecore/Ecore_Eo.h
@@ -83,18 +83,6 @@ EAPI Eina_Future_Scheduler *efl_loop_future_scheduler_get(const Eo *obj);
83 */ 83 */
84EAPI Eina_Promise *efl_loop_promise_new(const Eo *obj, Eina_Promise_Cancel_Cb cancel_cb, const void *data); 84EAPI Eina_Promise *efl_loop_promise_new(const Eo *obj, Eina_Promise_Cancel_Cb cancel_cb, const void *data);
85 85
86/**
87 * @brief Create a promise attached to the main loop
88 *
89 * @param cancel_cb A callback used to inform that the promise was canceled. Use
90 * this callback to @c free @p data. @p cancel_cb must not be @c NULL !
91 * @param data Data to @p cancel_cb.
92 * @return A promise or @c NULL on error.
93 *
94 * @see eina_promise_new()
95 */
96EAPI Eina_Promise *efl_loop_main_promise_new(Eina_Promise_Cancel_Cb cancel_cb, const void *data);
97
98#include "efl_loop_fd.eo.h" 86#include "efl_loop_fd.eo.h"
99#include "efl_loop_handler.eo.h" 87#include "efl_loop_handler.eo.h"
100 88
diff --git a/src/lib/ecore/efl_loop.c b/src/lib/ecore/efl_loop.c
index d4adc7a607..a01bdd6af3 100644
--- a/src/lib/ecore/efl_loop.c
+++ b/src/lib/ecore/efl_loop.c
@@ -776,14 +776,4 @@ efl_loop_promise_new(const Eo *obj, Eina_Promise_Cancel_Cb cancel_cb, const void
776 cancel_cb, data); 776 cancel_cb, data);
777} 777}
778 778
779EAPI Eina_Promise *
780efl_loop_main_promise_new(Eina_Promise_Cancel_Cb cancel_cb, const void *data)
781{
782 Efl_Loop *main;
783
784 main = efl_loop_main_get(EFL_LOOP_CLASS);
785 return eina_promise_new(efl_loop_future_scheduler_get(main),
786 cancel_cb, data);
787}
788
789#include "efl_loop.eo.c" 779#include "efl_loop.eo.c"