summaryrefslogtreecommitdiff
path: root/src/lib/eio/eio_model_private.h
diff options
context:
space:
mode:
authorLarry Jr <larry.olj@gmail.com>2015-04-05 15:19:45 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-04-05 15:19:45 +0200
commit05eecf5c8fdceda95649b4ccda7014a76fb0347f (patch)
tree10808095037fd97d73a19682b059a073f3086517 /src/lib/eio/eio_model_private.h
parentc8a9769665dca871e1622a4aa19d8084a8b42247 (diff)
emodel: Created Emodel and Eio_Model.
Diffstat (limited to 'src/lib/eio/eio_model_private.h')
-rw-r--r--src/lib/eio/eio_model_private.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/src/lib/eio/eio_model_private.h b/src/lib/eio/eio_model_private.h
new file mode 100644
index 0000000..26ebdfc
--- /dev/null
+++ b/src/lib/eio/eio_model_private.h
@@ -0,0 +1,62 @@
1#ifndef _EIO_MODEL_PRIVATE_H
2#define _EIO_MODEL_PRIVATE_H
3
4#define PROP_LIST_SIZE 7
5
6typedef struct _Eio_Model_Data Eio_Model_Data;
7//typedef struct _Eio_Model_Child_Add Eio_Model_Child_Add;
8typedef struct _Eio_Model_Monitor_Data Eio_Model_Monitor_Data;
9
10struct _Eio_Model_Monitor_Data
11{
12 Ecore_Event_Handler *ecore_child_add_handler[3];
13 Ecore_Event_Handler *ecore_child_del_handler[3];
14 int mon_event_child_add[3]; /**< plus EIO_MONITOR_ERROR */
15 int mon_event_child_del[3]; /**< plus EIO_MONITOR_ERROR */
16};
17
18/**
19 * !! Warning: Do not change enum's order
20 * before checking _eio_model_constructor.
21 * @see Eina_Value_Struct_Member.
22 */
23enum {
24 EIO_MODEL_PROP_FILENAME = 0,
25 EIO_MODEL_PROP_PATH,
26 EIO_MODEL_PROP_MTIME,
27 EIO_MODEL_PROP_IS_DIR,
28 EIO_MODEL_PROP_IS_LNK,
29 EIO_MODEL_PROP_SIZE
30};
31
32struct _Eio_Model_Data
33{
34 Eo *obj;
35 char *path;
36 Eina_List *properties_list;
37 Eina_Value *properties;
38 Emodel_Load load;
39 int load_pending;
40 Eina_List *children_list;
41 /**< EIO data */
42 Eio_File *file;
43 const Eina_Stat *stat;
44 Eio_Monitor *monitor;
45 Eio_Model_Monitor_Data mon;
46 int cb_count_child_add; /**< monitor reference counter for child add event */
47 int cb_count_child_del; /**< monitor reference counter for child del event*/
48 Eio_Filter_Direct_Cb filter_cb;
49 void *filter_userdata;
50};
51
52/*
53struct _Eio_Model_Child_Add
54{
55 Eo *child;
56 Eio_Model_Data *priv;
57 char* fullpath;
58 char *name;
59};
60*/
61
62#endif