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-06-03 18:15:57 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-06-03 18:15:57 -0300
commite79eb53e8d20bdb4838fbb42c9e5b1ee47b7f263 (patch)
tree3b38de336ae0346543b4e5100d83da88720906f1 /src/tests/eldbus/eldbus_test_eldbus_model.c
parent09446ccb90c1f3180e5b2e0a52b3ce2c78c7c140 (diff)
eina: Remove Eina_Promise* parameter in promise callback
Remove not very useful parameter to eina_promise_then callbacks.
Diffstat (limited to '')
-rw-r--r--src/tests/eldbus/eldbus_test_eldbus_model.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/tests/eldbus/eldbus_test_eldbus_model.c b/src/tests/eldbus/eldbus_test_eldbus_model.c
index 8dd1c07aa2..0b016b67d9 100644
--- a/src/tests/eldbus/eldbus_test_eldbus_model.c
+++ b/src/tests/eldbus/eldbus_test_eldbus_model.c
@@ -15,14 +15,14 @@
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, Eina_Promise* promise EINA_UNUSED) 18_promise_then_quit_cb(void *data , void *value)
19{ 19{
20 *(void**)data = value; 20 *(void**)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(void *data , void *value, Eina_Promise* promise EINA_UNUSED) 25_promise_then_quit_u_cb(void *data , void *value)
26{ 26{
27 unsigned *lhs = data; 27 unsigned *lhs = data;
28 unsigned *rhs = value; 28 unsigned *rhs = value;
@@ -31,7 +31,7 @@ _promise_then_quit_u_cb(void *data , void *value, Eina_Promise* promise EINA_UNU
31} 31}
32 32
33static void 33static void
34_promise_then_cp(void *data , void *value, Eina_Promise* promise EINA_UNUSED) 34_promise_then_cp(void *data , void *value)
35{ 35{
36 eina_value_copy(value, data); 36 eina_value_copy(value, data);
37 ecore_main_loop_quit(); 37 ecore_main_loop_quit();
@@ -39,14 +39,14 @@ _promise_then_cp(void *data , void *value, Eina_Promise* promise EINA_UNUSED)
39 39
40 40
41static void 41static void
42_promise_check_err(void *data EINA_UNUSED, void *value EINA_UNUSED, Eina_Promise* promise EINA_UNUSED) 42_promise_check_err(void *data EINA_UNUSED, void *value EINA_UNUSED)
43{ 43{
44 ck_assert_msg(0, "Promise Expected Error:\n"); 44 ck_assert_msg(0, "Promise Expected Error:\n");
45 ecore_main_loop_quit(); 45 ecore_main_loop_quit();
46} 46}
47 47
48static void 48static void
49_error_then_ok(void* data, Eina_Error error, Eina_Promise* promise EINA_UNUSED) 49_error_then_ok(void* data, Eina_Error error)
50{ 50{
51 Eina_Error const* expected_error = (Eina_Error*)data; 51 Eina_Error const* expected_error = (Eina_Error*)data;
52 if (data != NULL) 52 if (data != NULL)
@@ -58,7 +58,7 @@ _error_then_ok(void* data, Eina_Error error, Eina_Promise* promise EINA_UNUSED)
58} 58}
59 59
60static void 60static void
61_error_then_cb(void* data EINA_UNUSED, Eina_Error error, Eina_Promise* promise EINA_UNUSED) 61_error_then_cb(void* data EINA_UNUSED, Eina_Error error)
62{ 62{
63 ck_assert_msg(0,"Promise ERROR: %s\n", eina_error_msg_get(error)); 63 ck_assert_msg(0,"Promise ERROR: %s\n", eina_error_msg_get(error));
64 ecore_main_loop_quit(); 64 ecore_main_loop_quit();