summaryrefslogtreecommitdiff
path: root/src/lib/evas/cserve2/evas_cs2_private.h
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2013-07-31 19:31:50 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2013-10-28 15:47:13 +0900
commit08648ab2a5033da4f6c835c049238074802fb232 (patch)
tree2f625ed2f96a9bc84bac1b63c9c398aa73afce64 /src/lib/evas/cserve2/evas_cs2_private.h
parent88ef4131a0df0735ebef19306285b4bea608cbab (diff)
evas/cserve2: Add _shared_index_remap_check()
Check consistency of index header and remap if necessary.
Diffstat (limited to 'src/lib/evas/cserve2/evas_cs2_private.h')
-rw-r--r--src/lib/evas/cserve2/evas_cs2_private.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/evas/cserve2/evas_cs2_private.h b/src/lib/evas/cserve2/evas_cs2_private.h
index a2b897b0de..289119f34d 100644
--- a/src/lib/evas/cserve2/evas_cs2_private.h
+++ b/src/lib/evas/cserve2/evas_cs2_private.h
@@ -25,10 +25,16 @@ struct _Data_Entry {
25 25
26struct _Shared_Index { 26struct _Shared_Index {
27 char path[64]; 27 char path[64];
28 int generation_id;
28 Eina_File *f; 29 Eina_File *f;
29 const Shared_Array_Header *header;
30 union 30 union
31 { 31 {
32 const Shared_Array_Header *header;
33 void *data;
34 };
35 union
36 {
37 const char *p; // Random access
32 const Index_Entry *index; // TODO for strings 38 const Index_Entry *index; // TODO for strings
33 const Image_Data *idata; 39 const Image_Data *idata;
34 const File_Data *fdata; 40 const File_Data *fdata;
@@ -40,6 +46,7 @@ struct _Shared_Index {
40}; 46};
41 47
42struct _Index_Table { 48struct _Index_Table {
49 int generation_id;
43 // TODO: use Shared_Index 50 // TODO: use Shared_Index
44 struct { 51 struct {
45 char index_path[64]; 52 char index_path[64];