summaryrefslogtreecommitdiff
path: root/src/lib/eldbus/eldbus_model_private.h
diff options
context:
space:
mode:
authorLarry Jr <larry.olj@gmail.com>2016-04-20 17:07:53 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-04-29 13:21:24 -0300
commit0c76f82a31b1ad06a4da4c12f1a02139e0d0c6fa (patch)
tree254f0542b8fc5ea1af14936da8e6806262f3f8a6 /src/lib/eldbus/eldbus_model_private.h
parent42346e22f4c06634e180c44cf63924dbc50a5184 (diff)
Efl, Eio, Eldbus, Elementary: new model API use eina_promise
Efl - efl_model_base changed to use eina_promise Eio - eio_model use efl_model_base with promise Eldbus - elddbus models use promise now Elementary - elm_view_list and elm_view_form use new models with promise updated all related examples and tests
Diffstat (limited to 'src/lib/eldbus/eldbus_model_private.h')
-rw-r--r--src/lib/eldbus/eldbus_model_private.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/lib/eldbus/eldbus_model_private.h b/src/lib/eldbus/eldbus_model_private.h
index 784b422..29d7bdd 100644
--- a/src/lib/eldbus/eldbus_model_private.h
+++ b/src/lib/eldbus/eldbus_model_private.h
@@ -3,12 +3,42 @@
3 3
4#include "eldbus_private.h" 4#include "eldbus_private.h"
5 5
6#include <Ecore.h>
7#include <Eina.h>
6#include <Eo.h> 8#include <Eo.h>
7#include <Efl.h> 9#include <Efl.h>
8 10
11typedef struct _Eldbus_Children_Slice_Promise _Eldbus_Children_Slice_Promise;
12struct _Eldbus_Children_Slice_Promise
13{
14 unsigned start;
15 unsigned count;
16 Eina_Promise_Owner* promise;
17};
18
19typedef struct _Eldbus_Property_Promise _Eldbus_Property_Promise;
20struct _Eldbus_Property_Promise
21{
22 char *property;
23 Eina_Promise_Owner* promise;
24};
25
26void _accessor_free(void *data);
27
9/* logging support */ 28/* logging support */
10extern int eldbus_model_log_dom; 29extern int eldbus_model_log_dom;
11 30
31#define ELDBUS_MODEL_ON_ERROR_EXIT_PROMISE_SET(exp, promise, err) \
32 do \
33 { \
34 if (EINA_UNLIKELY(!(exp))) \
35 { \
36 eina_promise_owner_error_set(promise, err); \
37 return; \
38 } \
39 } \
40 while(0)
41
12#ifdef CRI 42#ifdef CRI
13# undef CRI 43# undef CRI
14#endif 44#endif