summaryrefslogtreecommitdiff
path: root/src/Makefile_Eina.am
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-04-01 14:49:58 -0300
committerCedric Bail <cedric@osg.samsung.com>2016-04-05 11:35:12 -0700
commit09eea7bc01dd1381589eeab35e705cbd45820f1e (patch)
tree99fe671e347803af2052aede2d4f58f37768c416 /src/Makefile_Eina.am
parentaba46af602c8b45815974ed25303874e9a368c86 (diff)
eina: add promise
Add a promise object that will allows Eolian interface to include promises as a way to have asynchronous value return and composibility. To understand better, let see the coming usage in a .eo file: class Foo { methods { bar { params { @inout promise: Promise<int>; } } } } Which will create the following API interface: void foo_bar(Eo* obj, Eina_Promise** promise); and the equivalent declaration for implementation. However, the API function will instantiate the Promise for the user and the implementer of the class automatically. So the user of this function will treat it as a @out parameter, while the developer of the function will treat it like a @inout parameter. So, the user will use this function like this: Eina_Promise* promise; // No need to instantiate foo_bar(obj, &promise); eina_promise_then(promise, callback); Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
Diffstat (limited to '')
-rw-r--r--src/Makefile_Eina.am2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Makefile_Eina.am b/src/Makefile_Eina.am
index 71d0330b68..da76e0ae44 100644
--- a/src/Makefile_Eina.am
+++ b/src/Makefile_Eina.am
@@ -96,6 +96,7 @@ lib/eina/eina_util.h \
96lib/eina/eina_quaternion.h \ 96lib/eina/eina_quaternion.h \
97lib/eina/eina_vector.h \ 97lib/eina/eina_vector.h \
98lib/eina/eina_inline_vector.x \ 98lib/eina/eina_inline_vector.x \
99lib/eina/eina_promise.h \
99lib/eina/eina_bezier.h 100lib/eina/eina_bezier.h
100 101
101lib_eina_libeina_la_SOURCES = \ 102lib_eina_libeina_la_SOURCES = \
@@ -166,6 +167,7 @@ lib/eina/eina_private.h \
166lib/eina/eina_share_common.h \ 167lib/eina/eina_share_common.h \
167lib/eina/eina_strbuf_common.h \ 168lib/eina/eina_strbuf_common.h \
168lib/eina/eina_quaternion.c \ 169lib/eina/eina_quaternion.c \
170lib/eina/eina_promise.c \
169lib/eina/eina_bezier.c 171lib/eina/eina_bezier.c
170 172
171if HAVE_WIN32 173if HAVE_WIN32