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:55 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-04-05 15:19:55 +0200
commit2f5383333196004f9113952c864bf9848025a04b (patch)
tree4ac452967a8bd10646b63a2ba9e23ad0b72f457e /src/lib/eio/eio_model_private.h
parent23cfd2b4f4975d4a3d7122f1f2802f93271b2c56 (diff)
emodel: api change property_get/set and event modelchange
Diffstat (limited to 'src/lib/eio/eio_model_private.h')
-rw-r--r--src/lib/eio/eio_model_private.h24
1 files changed, 15 insertions, 9 deletions
diff --git a/src/lib/eio/eio_model_private.h b/src/lib/eio/eio_model_private.h
index a07fba5..e88cd0f 100644
--- a/src/lib/eio/eio_model_private.h
+++ b/src/lib/eio/eio_model_private.h
@@ -14,32 +14,38 @@ struct _Eio_Model_Monitor_Data
14 int mon_event_child_del[3]; /**< plus EIO_MONITOR_ERROR */ 14 int mon_event_child_del[3]; /**< plus EIO_MONITOR_ERROR */
15}; 15};
16 16
17/**
18 * !! Warning: Do not change enum's order
19 * before checking _eio_model_constructor.
20 * @see Eina_Value_Struct_Member.
21 */
22enum { 17enum {
23 EIO_MODEL_PROP_FILENAME = 0, 18 EIO_MODEL_PROP_FILENAME = 0,
24 EIO_MODEL_PROP_PATH, 19 EIO_MODEL_PROP_PATH,
25 EIO_MODEL_PROP_MTIME, 20 EIO_MODEL_PROP_MTIME,
26 EIO_MODEL_PROP_IS_DIR, 21 EIO_MODEL_PROP_IS_DIR,
27 EIO_MODEL_PROP_IS_LNK, 22 EIO_MODEL_PROP_IS_LNK,
28 EIO_MODEL_PROP_SIZE 23 EIO_MODEL_PROP_SIZE,
24 EIO_MODEL_PROP_LAST
25};
26
27static const char* _eio_model_prop_names[] =
28{
29 [EIO_MODEL_PROP_FILENAME] = "filename",
30 [EIO_MODEL_PROP_PATH] = "path",
31 [EIO_MODEL_PROP_MTIME] = "mtime",
32 [EIO_MODEL_PROP_IS_DIR] = "is_dir",
33 [EIO_MODEL_PROP_IS_LNK] = "is_lnk",
34 [EIO_MODEL_PROP_SIZE] = "size"
29}; 35};
30 36
31struct _Eio_Model_Data 37struct _Eio_Model_Data
32{ 38{
33 Eo *obj; 39 Eo *obj;
34 char *path; 40 char *path;
35 Eina_Array *properties_array; 41 Eina_Array *properties_name;
36 Eina_Value *properties; 42 Eina_Value *properties_value[EIO_MODEL_PROP_LAST];
37 Emodel_Load load; 43 Emodel_Load load;
38 int load_pending; 44 int load_pending;
39 Eina_List *children_list; 45 Eina_List *children_list;
40 /**< EIO data */ 46 /**< EIO data */
41 Eio_File *file; 47 Eio_File *file;
42 const Eina_Stat *stat; 48 Eina_Bool is_dir;
43 Eio_Monitor *monitor; 49 Eio_Monitor *monitor;
44 Eio_Model_Monitor_Data mon; 50 Eio_Model_Monitor_Data mon;
45 int cb_count_child_add; /**< monitor reference counter for child add event */ 51 int cb_count_child_add; /**< monitor reference counter for child add event */