summaryrefslogtreecommitdiff
path: root/src/examples/eldbus
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-06-03 20:03:13 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-06-03 20:03:13 -0300
commitf6a260e7a9ff550483d0a081cf4ce90cc4e2bfc8 (patch)
tree6db17e0cf5e61d376b55a8ff8189a848cd2170e8 /src/examples/eldbus
parentcd91b02dd1f04daaed19b51c7fda2d4047b4ad78 (diff)
eina: Remove Eina_Promise* parameter to callbacks to promises in examples
Diffstat (limited to 'src/examples/eldbus')
-rw-r--r--src/examples/eldbus/dbusmodel.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/examples/eldbus/dbusmodel.c b/src/examples/eldbus/dbusmodel.c
index 4cc7178..9695bd5 100644
--- a/src/examples/eldbus/dbusmodel.c
+++ b/src/examples/eldbus/dbusmodel.c
@@ -16,8 +16,9 @@
16static int prop_count = 0; 16static int prop_count = 0;
17 17
18static void 18static void
19promise_then_prop_c(Eo* obj, void* data) 19promise_then_prop_c(void* priv_obj, void* data)
20{ 20{
21 Eo* obj = priv_obj;
21 Eina_Value * property_value; 22 Eina_Value * property_value;
22 const Eina_Array *properties_list; 23 const Eina_Array *properties_list;
23 Eina_Array_Iterator a_it; 24 Eina_Array_Iterator a_it;
@@ -46,14 +47,14 @@ promise_then_prop_c(Eo* obj, void* data)
46} 47}
47 48
48static void 49static void
49error_cb(void* data EINA_UNUSED, const Eina_Error *error EINA_UNUSED) 50error_cb(void* data EINA_UNUSED, Eina_Error error EINA_UNUSED)
50{ 51{
51 printf(" ERROR\n"); 52 printf(" ERROR\n");
52 ecore_main_loop_quit(); 53 ecore_main_loop_quit();
53} 54}
54 55
55static void 56static void
56promise_then_a(Eo* obj EINA_UNUSED, void* data) 57promise_then_a(void* priv_obj EINA_UNUSED, void* data)
57{ 58{
58 const Eina_Array *properties_list; 59 const Eina_Array *properties_list;
59 Eina_Array_Iterator a_it; 60 Eina_Array_Iterator a_it;
@@ -95,7 +96,7 @@ promise_then_a(Eo* obj EINA_UNUSED, void* data)
95 ecore_main_loop_quit(); 96 ecore_main_loop_quit();
96} 97}
97static void 98static void
98promise_then(Eo* obj EINA_UNUSED, void* data) 99promise_then(void* obj EINA_UNUSED, void* data)
99{ 100{
100 Eina_Accessor *accessor; 101 Eina_Accessor *accessor;
101 unsigned int* count; 102 unsigned int* count;
@@ -109,12 +110,13 @@ promise_then(Eo* obj EINA_UNUSED, void* data)
109 return; 110 return;
110 } 111 }
111 112
112 eina_iterator_next(iterator, (void **)&count); 113 if(eina_iterator_next(iterator, (void **)&count))
113 114 {
114 printf("efl_model_loaded count %d\n", (int)*count); fflush(stdout); 115 printf("efl_model_loaded count %d\n", (int)*count); fflush(stdout);
115 printf("efl_model_loaded accessor %p\n", accessor); fflush(stdout); 116 printf("efl_model_loaded accessor %p\n", accessor); fflush(stdout);
116 117
117 promise_then_a(NULL, accessor); 118 promise_then_a(NULL, accessor);
119 }
118} 120}
119 121
120int 122int