summaryrefslogtreecommitdiff
path: root/src/lib/eo/eina_types.eot
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2016-04-12 16:00:23 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-05-25 21:32:03 -0300
commit7241b7375de1eb4327f5bca21dcfc5a889b9eb72 (patch)
treececbe8991d1b38db8f8c67965ae2a5e6cf2aa503 /src/lib/eo/eina_types.eot
parentde9be13d458f2739a536e5863aa8caddd3f7f715 (diff)
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/lib/eo/eina_types.eot')
-rw-r--r--src/lib/eo/eina_types.eot16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/lib/eo/eina_types.eot b/src/lib/eo/eina_types.eot
index f25b727f06..0643eef7c4 100644
--- a/src/lib/eo/eina_types.eot
+++ b/src/lib/eo/eina_types.eot
@@ -25,3 +25,19 @@ struct @extern Eina.Matrix3 {
25struct @extern Eina.Inarray; 25struct @extern Eina.Inarray;
26 26
27type @extern Eina.Unicode: uint32; 27type @extern Eina.Unicode: uint32;
28
29struct @extern Eina.File.Direct.Info;
30/*{
31 path_lenght: size_t; [[Size of the whole path]]
32 name_length: size_t; [[Size of the filename/basename component]]
33 name_start: size_t; [[Start position of the filename/basename component]]
34 type: Eina_File_Type; [[File type]]
35 path: char[EINA_PATH_MAX]; [[The path]]
36};*/
37
38enum @extern Eina.Xattr.Flags {
39 insert, [[This is the default behaviour, it will either create or replace the extended attribute]]
40 replace, [[This will only succeed if the extended attribute previously existed]]
41 created [[This will only succeed if the extended attribute wasn't previously set]]
42}
43