summaryrefslogtreecommitdiff
path: root/src/examples/eio
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/eio
parentcd91b02dd1f04daaed19b51c7fda2d4047b4ad78 (diff)
eina: Remove Eina_Promise* parameter to callbacks to promises in examples
Diffstat (limited to 'src/examples/eio')
-rw-r--r--src/examples/eio/eio_job_ls.c1
-rw-r--r--src/examples/eio/eio_job_open.c6
-rw-r--r--src/examples/eio/eio_job_open_multi.c1
3 files changed, 3 insertions, 5 deletions
diff --git a/src/examples/eio/eio_job_ls.c b/src/examples/eio/eio_job_ls.c
index 2e2db1faf6..9426c23a74 100644
--- a/src/examples/eio/eio_job_ls.c
+++ b/src/examples/eio/eio_job_ls.c
@@ -21,7 +21,6 @@ void done_cb(void *data, void *value EINA_UNUSED)
21void error_cb(void *data, Eina_Error error) 21void error_cb(void *data, Eina_Error error)
22{ 22{
23 Eio_Job *job = data; 23 Eio_Job *job = data;
24 EINA_SAFETY_ON_NULL_RETURN(error);
25 const char *msg = eina_error_msg_get(error); 24 const char *msg = eina_error_msg_get(error);
26 printf("%s error: %s\n", __FUNCTION__, msg); 25 printf("%s error: %s\n", __FUNCTION__, msg);
27 ecore_main_loop_quit(); 26 ecore_main_loop_quit();
diff --git a/src/examples/eio/eio_job_open.c b/src/examples/eio/eio_job_open.c
index 7662bfb8e7..997724377b 100644
--- a/src/examples/eio/eio_job_open.c
+++ b/src/examples/eio/eio_job_open.c
@@ -9,7 +9,7 @@
9#include <Eio.h> 9#include <Eio.h>
10#include <Ecore.h> 10#include <Ecore.h>
11 11
12void error_cb(void *data, Eina_Error error, Eina_Promise* promise EINA_UNUSED) 12void error_cb(void *data, Eina_Error error)
13{ 13{
14 EINA_SAFETY_ON_NULL_RETURN(data); 14 EINA_SAFETY_ON_NULL_RETURN(data);
15 15
@@ -19,7 +19,7 @@ void error_cb(void *data, Eina_Error error, Eina_Promise* promise EINA_UNUSED)
19 ecore_main_loop_quit(); 19 ecore_main_loop_quit();
20} 20}
21 21
22void done_closing_cb(void* data EINA_UNUSED, void *value EINA_UNUSED, Eina_Promise* promise EINA_UNUSED) 22void done_closing_cb(void* data EINA_UNUSED, void *value EINA_UNUSED)
23{ 23{
24 printf("%s closed file.\n", __FUNCTION__); 24 printf("%s closed file.\n", __FUNCTION__);
25 25
@@ -34,7 +34,7 @@ void closing_job(Eio_Job *job, Eina_File *file)
34 eina_promise_then(promise, &done_closing_cb, &error_cb, job); 34 eina_promise_then(promise, &done_closing_cb, &error_cb, job);
35} 35}
36 36
37void done_open_cb(void *data, void* value, Eina_Promise* promise) 37void done_open_cb(void *data, void* value)
38{ 38{
39 EINA_SAFETY_ON_NULL_RETURN(data); 39 EINA_SAFETY_ON_NULL_RETURN(data);
40 EINA_SAFETY_ON_NULL_RETURN(value); 40 EINA_SAFETY_ON_NULL_RETURN(value);
diff --git a/src/examples/eio/eio_job_open_multi.c b/src/examples/eio/eio_job_open_multi.c
index d1f8fa97bd..c621ade5cf 100644
--- a/src/examples/eio/eio_job_open_multi.c
+++ b/src/examples/eio/eio_job_open_multi.c
@@ -11,7 +11,6 @@
11 11
12void error_cb(void *data, Eina_Error error) 12void error_cb(void *data, Eina_Error error)
13{ 13{
14 EINA_SAFETY_ON_NULL_RETURN(error);
15 EINA_SAFETY_ON_NULL_RETURN(data); 14 EINA_SAFETY_ON_NULL_RETURN(data);
16 15
17 const char *msg = eina_error_msg_get(error); 16 const char *msg = eina_error_msg_get(error);