summaryrefslogtreecommitdiff
path: root/unsorted
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2018-04-30 10:06:47 -0700
committerCedric BAIL <cedric@osg.samsung.com>2018-05-01 10:39:01 -0700
commit7092eb69d0bd501b99720e4fefc3a5306c0c4097 (patch)
tree09f9443811fd3468466a2aea031b62e8f5c7ea76 /unsorted
parent8813cd33dded80a1d573eb034483b4ae6aa0888f (diff)
eio: update efl_io_manager_ls example.
Diffstat (limited to 'unsorted')
-rw-r--r--unsorted/eio/efl_io_manager_ls.c5
-rw-r--r--unsorted/eio/efl_io_manager_open_multi.c14
2 files changed, 4 insertions, 15 deletions
diff --git a/unsorted/eio/efl_io_manager_ls.c b/unsorted/eio/efl_io_manager_ls.c
index 65d55110..fd790328 100644
--- a/unsorted/eio/efl_io_manager_ls.c
+++ b/unsorted/eio/efl_io_manager_ls.c
@@ -39,12 +39,13 @@ done_cb(void *data EINA_UNUSED,
39 39
40// Progress used to be the "Eio_Main_Cb" family of callbacks in the legacy API. 40// Progress used to be the "Eio_Main_Cb" family of callbacks in the legacy API.
41static void 41static void
42progress_cb(void *data EINA_UNUSED, Eina_Accessor *access) 42progress_cb(void *data EINA_UNUSED, Eina_Array *array)
43{ 43{
44 Eina_Array_Iterator it;
44 const char *filename; 45 const char *filename;
45 unsigned int count; 46 unsigned int count;
46 47
47 EINA_ACCESSOR_FOREACH(access, count, filename) 48 EINA_ARRAY_ITER_NEXT(array, count, filename, it)
48 printf("%s listing filename: %s\n", __FUNCTION__, filename); 49 printf("%s listing filename: %s\n", __FUNCTION__, filename);
49} 50}
50 51
diff --git a/unsorted/eio/efl_io_manager_open_multi.c b/unsorted/eio/efl_io_manager_open_multi.c
index 69bc4ba4..bcee8ca1 100644
--- a/unsorted/eio/efl_io_manager_open_multi.c
+++ b/unsorted/eio/efl_io_manager_open_multi.c
@@ -9,19 +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, const Efl_Event *ev) 12Eina_Value
13{
14 Efl_Future_Event_Failure *failure = ev->info;
15 const char *msg = eina_error_msg_get(failure->error);
16 Efl_Io_Manager *job = data;
17 (void) job;
18
19 EINA_LOG_ERR("error: %s", msg);
20
21 ecore_main_loop_quit();
22}
23
24static Eina_Value
25_close_cb(void *data EINA_UNUSED, const Eina_Value array, const Eina_Future *dead EINA_UNUSED) 13_close_cb(void *data EINA_UNUSED, const Eina_Value array, const Eina_Future *dead EINA_UNUSED)
26{ 14{
27 printf("%s closed all files.\n", __FUNCTION__); 15 printf("%s closed all files.\n", __FUNCTION__);