summaryrefslogtreecommitdiff
path: root/src/examples/eio
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-08-15 14:44:41 +0100
committerTom Hacohen <tom@stosb.com>2016-08-15 15:07:42 +0100
commite65aae994e72c1d3f8ac6b5360d3772f177b77ef (patch)
tree7ecaf136e45470635889191aded2b47057720a98 /src/examples/eio
parent35abb3c34d10a4826c98055fb85ecf93915e5ea8 (diff)
Eo: Finish the renaming of Eo to the EFL.
This renames all the rest of the API to the EFL namespace except for Eo_Event that will follow soon. Obviously breaks both API and ABI.
Diffstat (limited to 'src/examples/eio')
-rw-r--r--src/examples/eio/efl_io_manager_ls.c6
-rw-r--r--src/examples/eio/efl_io_manager_open.c4
-rw-r--r--src/examples/eio/efl_io_manager_open_multi.c6
-rw-r--r--src/examples/eio/eio_sentry.c2
4 files changed, 9 insertions, 9 deletions
diff --git a/src/examples/eio/efl_io_manager_ls.c b/src/examples/eio/efl_io_manager_ls.c
index a411de1efb..ea2dcca422 100644
--- a/src/examples/eio/efl_io_manager_ls.c
+++ b/src/examples/eio/efl_io_manager_ls.c
@@ -15,7 +15,7 @@ void done_cb(void *data, void *value EINA_UNUSED)
15 Efl_Io_Manager *job = data; 15 Efl_Io_Manager *job = data;
16 printf("%s done listing files.\n", __FUNCTION__); 16 printf("%s done listing files.\n", __FUNCTION__);
17 ecore_main_loop_quit(); 17 ecore_main_loop_quit();
18 eo_unref(job); 18 efl_unref(job);
19} 19}
20 20
21void error_cb(void *data, Eina_Error error) 21void error_cb(void *data, Eina_Error error)
@@ -25,7 +25,7 @@ void error_cb(void *data, Eina_Error error)
25 printf("%s error: %s\n", __FUNCTION__, msg); 25 printf("%s error: %s\n", __FUNCTION__, msg);
26 ecore_main_loop_quit(); 26 ecore_main_loop_quit();
27 27
28 eo_unref(job); 28 efl_unref(job);
29} 29}
30 30
31void filter_cb(void *data EINA_UNUSED, const Eo_Event *event) 31void filter_cb(void *data EINA_UNUSED, const Eo_Event *event)
@@ -51,7 +51,7 @@ void list_files(void *data)
51 Eina_Promise *promise; 51 Eina_Promise *promise;
52 const char *path = data; 52 const char *path = data;
53 53
54 Efl_Io_Manager *job = eo_add(EFL_IO_MANAGER_CLASS, NULL); 54 Efl_Io_Manager *job = efl_add(EFL_IO_MANAGER_CLASS, NULL);
55 efl_event_callback_add(job, EFL_IO_MANAGER_EVENT_FILTER_NAME, (Efl_Event_Cb)&filter_cb, NULL); 55 efl_event_callback_add(job, EFL_IO_MANAGER_EVENT_FILTER_NAME, (Efl_Event_Cb)&filter_cb, NULL);
56 promise = efl_io_manager_file_ls(job, path); 56 promise = efl_io_manager_file_ls(job, path);
57 eina_promise_progress_cb_add(promise, (Eina_Promise_Progress_Cb)&progress_cb, NULL, NULL); 57 eina_promise_progress_cb_add(promise, (Eina_Promise_Progress_Cb)&progress_cb, NULL, NULL);
diff --git a/src/examples/eio/efl_io_manager_open.c b/src/examples/eio/efl_io_manager_open.c
index daa9ded23d..4c9f4a46a2 100644
--- a/src/examples/eio/efl_io_manager_open.c
+++ b/src/examples/eio/efl_io_manager_open.c
@@ -51,10 +51,10 @@ void done_open_cb(void *data, void* value)
51 51
52void open_file(const char *path) 52void open_file(const char *path)
53{ 53{
54 Efl_Io_Manager *job = eo_add(EFL_IO_MANAGER_CLASS, NULL); 54 Efl_Io_Manager *job = efl_add(EFL_IO_MANAGER_CLASS, NULL);
55 eina_promise_then(efl_io_manager_file_open(job, path, EINA_FALSE), &done_open_cb, &error_cb, job); 55 eina_promise_then(efl_io_manager_file_open(job, path, EINA_FALSE), &done_open_cb, &error_cb, job);
56 56
57 eo_unref(job); 57 efl_unref(job);
58} 58}
59 59
60int main(int argc, char const *argv[]) 60int main(int argc, char const *argv[])
diff --git a/src/examples/eio/efl_io_manager_open_multi.c b/src/examples/eio/efl_io_manager_open_multi.c
index 291f5a2a1e..e55f039de7 100644
--- a/src/examples/eio/efl_io_manager_open_multi.c
+++ b/src/examples/eio/efl_io_manager_open_multi.c
@@ -17,7 +17,7 @@ void error_cb(void *data, Eina_Error error)
17 EINA_LOG_ERR("error: %s", msg); 17 EINA_LOG_ERR("error: %s", msg);
18 18
19 Efl_Io_Manager *job = data; 19 Efl_Io_Manager *job = data;
20 eo_unref(job); 20 efl_unref(job);
21 21
22 ecore_main_loop_quit(); 22 ecore_main_loop_quit();
23} 23}
@@ -31,7 +31,7 @@ void done_closing_cb(void *data, void* value EINA_UNUSED)
31 printf("%s closed file.\n", __FUNCTION__); 31 printf("%s closed file.\n", __FUNCTION__);
32 32
33 Efl_Io_Manager *job = data; 33 Efl_Io_Manager *job = data;
34 eo_unref(job); 34 efl_unref(job);
35 35
36 ecore_main_loop_quit(); 36 ecore_main_loop_quit();
37} 37}
@@ -74,7 +74,7 @@ void open_file(const char *path, const char *path2)
74 Eina_Promise *promise; 74 Eina_Promise *promise;
75 Eina_Promise *tasks[3] = {NULL, NULL, NULL}; 75 Eina_Promise *tasks[3] = {NULL, NULL, NULL};
76 76
77 Efl_Io_Manager *job = eo_add(EFL_IO_MANAGER_CLASS, NULL); 77 Efl_Io_Manager *job = efl_add(EFL_IO_MANAGER_CLASS, NULL);
78 tasks[0] = efl_io_manager_file_open(job, path, EINA_FALSE); 78 tasks[0] = efl_io_manager_file_open(job, path, EINA_FALSE);
79 tasks[1] = efl_io_manager_file_open(job, path2, EINA_FALSE); 79 tasks[1] = efl_io_manager_file_open(job, path2, EINA_FALSE);
80 promise = eina_promise_all(eina_carray_iterator_new((void**)&tasks[0])); 80 promise = eina_promise_all(eina_carray_iterator_new((void**)&tasks[0]));
diff --git a/src/examples/eio/eio_sentry.c b/src/examples/eio/eio_sentry.c
index 9f8d03d704..4c57f7a802 100644
--- a/src/examples/eio/eio_sentry.c
+++ b/src/examples/eio/eio_sentry.c
@@ -27,7 +27,7 @@ void
27monitor_stuff(void *data) 27monitor_stuff(void *data)
28{ 28{
29 const char *path = data; 29 const char *path = data;
30 Eio_Sentry *sentry = eo_add(EIO_SENTRY_CLASS, NULL); 30 Eio_Sentry *sentry = efl_add(EIO_SENTRY_CLASS, NULL);
31 efl_event_callback_add(sentry, EIO_SENTRY_EVENT_FILE_CREATED, (Efl_Event_Cb)&sentry_cb, NULL); 31 efl_event_callback_add(sentry, EIO_SENTRY_EVENT_FILE_CREATED, (Efl_Event_Cb)&sentry_cb, NULL);
32 32
33 printf("Starting monitoring path %s\n", path); 33 printf("Starting monitoring path %s\n", path);