summaryrefslogtreecommitdiff
path: root/src/tests/eldbus/eldbus_test_eldbus_model.c
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-05-26 13:34:45 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-05-26 13:35:07 -0300
commit1ed8759e1abd0d46a3835bea09a5926172a8aead (patch)
tree257e24a8cdceb9effc3ad8e5b5252a6976c6769c /src/tests/eldbus/eldbus_test_eldbus_model.c
parentb0b8109cd5dbe295f3024b98723336bbb89feda8 (diff)
ecore: eldbus: Fix prototype for promise then_cb new prototype
Added Eina_Promise parameter and removed indirection for Eina_Error.
Diffstat (limited to '')
-rw-r--r--src/tests/eldbus/eldbus_test_eldbus_model.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/tests/eldbus/eldbus_test_eldbus_model.c b/src/tests/eldbus/eldbus_test_eldbus_model.c
index 361aead2a7..68398ca11f 100644
--- a/src/tests/eldbus/eldbus_test_eldbus_model.c
+++ b/src/tests/eldbus/eldbus_test_eldbus_model.c
@@ -15,21 +15,21 @@
15#include "eldbus_suite.h" 15#include "eldbus_suite.h"
16 16
17static void 17static void
18_promise_then_quit_cb(void **data , void **value ) 18_promise_then_quit_cb(void **data , void **value, Eina_Promise* promise EINA_UNUSED)
19{ 19{
20 *data = *value; 20 *data = *value;
21 ecore_main_loop_quit(); 21 ecore_main_loop_quit();
22} 22}
23 23
24static void 24static void
25_promise_then_quit_u_cb(unsigned *data , unsigned *value) 25_promise_then_quit_u_cb(unsigned *data , unsigned *value, Eina_Promise* promise EINA_UNUSED)
26{ 26{
27 *data = *value; 27 *data = *value;
28 ecore_main_loop_quit(); 28 ecore_main_loop_quit();
29} 29}
30 30
31static void 31static void
32_promise_then_cp(Eina_Value *data , void *value) 32_promise_then_cp(Eina_Value *data , void *value, Eina_Promise* promise EINA_UNUSED)
33{ 33{
34 eina_value_copy(value, data); 34 eina_value_copy(value, data);
35 ecore_main_loop_quit(); 35 ecore_main_loop_quit();
@@ -37,28 +37,28 @@ _promise_then_cp(Eina_Value *data , void *value)
37 37
38 38
39static void 39static void
40_promise_check_err(void *data EINA_UNUSED, void *value EINA_UNUSED) 40_promise_check_err(void *data EINA_UNUSED, void *value EINA_UNUSED, Eina_Promise* promise EINA_UNUSED)
41{ 41{
42 ck_assert_msg(0, "Promise Expected Error:\n"); 42 ck_assert_msg(0, "Promise Expected Error:\n");
43 ecore_main_loop_quit(); 43 ecore_main_loop_quit();
44} 44}
45 45
46static void 46static void
47_error_then_ok(void* data, Eina_Error const* error) 47_error_then_ok(void* data, Eina_Error error, Eina_Promise* promise EINA_UNUSED)
48{ 48{
49 Eina_Error const* expected_error = (Eina_Error*)data; 49 Eina_Error const* expected_error = (Eina_Error*)data;
50 if (data != NULL) 50 if (data != NULL)
51 { 51 {
52 ck_assert_int_eq(*error, *expected_error); 52 ck_assert_int_eq(error, *expected_error);
53 } 53 }
54 54
55 ecore_main_loop_quit(); 55 ecore_main_loop_quit();
56} 56}
57 57
58static void 58static void
59_error_then_cb(void* data EINA_UNUSED, Eina_Error const* error) 59_error_then_cb(void* data EINA_UNUSED, Eina_Error error, Eina_Promise* promise EINA_UNUSED)
60{ 60{
61 ck_assert_msg(0,"Promise ERROR: %s\n", eina_error_msg_get(*error)); 61 ck_assert_msg(0,"Promise ERROR: %s\n", eina_error_msg_get(error));
62 ecore_main_loop_quit(); 62 ecore_main_loop_quit();
63} 63}
64 64