diff options
author | Lauro Moura <lauromoura@expertisesolutions.com.br> | 2016-04-12 16:00:23 -0300 |
---|---|---|
committer | Felipe Magno de Almeida <felipe@expertisesolutions.com.br> | 2016-05-25 21:32:03 -0300 |
commit | 7241b7375de1eb4327f5bca21dcfc5a889b9eb72 (patch) | |
tree | cecbe8991d1b38db8f8c67965ae2a5e6cf2aa503 /src/tests/eio/eio_suite.h | |
parent | de9be13d458f2739a536e5863aa8caddd3f7f715 (diff) | |
download | efl-7241b7375de1eb4327f5bca21dcfc5a889b9eb72.tar.gz |
eio: Adds Eo-based Eio API
The legacy Eio_File factory functions are replaced by an Eo object
called Eo_Job that return promises wrapping the async file operations.
With this commit, the legacy Eio callbacks are replaced by the following
Eo/Promises counterparts :
* Done_Cb -> Promise then success callback
* Error_Cb -> Promise then error callback
* Main_Cb -> Promise progress callback
* Filter_Cb -> Job object event (more below)
Events are used to deliver and get the filter data. To differentiate
between the named and direct versions, they come in "filter,direct" and
"filter,name" versions.
Monitors were wrapped inside a new class Eo_Sentry.
The user creates a sentry object and adds monitoring targets to it,
listening to events on it.
The sentry event info is composed of two strings. The source string
is the path being monitored, i.e. the one passed to eio_sentry_add, and
the trigger string is the path that actually triggered the event, e.g.
a new file created in a monitored directory.
Diffstat (limited to 'src/tests/eio/eio_suite.h')
-rw-r--r-- | src/tests/eio/eio_suite.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tests/eio/eio_suite.h b/src/tests/eio/eio_suite.h index 170a060c73..cdecfd0f09 100644 --- a/src/tests/eio/eio_suite.h +++ b/src/tests/eio/eio_suite.h @@ -4,9 +4,12 @@ #include <check.h> void eio_test_monitor(TCase *tc); +void eio_test_sentry(TCase *tc); void eio_model_test_file(TCase *tc); void eio_model_test_monitor_add(TCase *tc); void eio_test_file(TCase *tc); +void eio_test_job(TCase *tc); +void eio_test_job_xattr(TCase *tc); void eio_test_xattr(TCase *tc); #endif /* _EIO_SUITE_H */ |