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-29 13:08:36 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2013-10-28 15:47:13 +0900
commit47be3a2b819ed6319a65018195b31b622b547aab (patch)
treeda38402d574af89bfe4ce36667598cb8a260d108 /src/lib/evas/cserve2/evas_cs2_private.h
parentc0bb73c775787ae1221efacc8d5d7a01a28320af (diff)
evas/cserve2: Prepare shared indexes in clients
- Move required struct definitions to common evas_cs2.h - Open/close shm and map arrays to memory Pretty stupid for now as it will close & reopen the shm files even when unchanged. - Check shm size and array header consistency - Implement message send - Send messages from server when calling repack()
Diffstat (limited to 'src/lib/evas/cserve2/evas_cs2_private.h')
-rw-r--r--src/lib/evas/cserve2/evas_cs2_private.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/lib/evas/cserve2/evas_cs2_private.h b/src/lib/evas/cserve2/evas_cs2_private.h
index 1cb59a3bdb..6acf6f66d4 100644
--- a/src/lib/evas/cserve2/evas_cs2_private.h
+++ b/src/lib/evas/cserve2/evas_cs2_private.h
@@ -2,6 +2,7 @@
2#define EVAS_CS2_PRIVATE_H 1 2#define EVAS_CS2_PRIVATE_H 1
3 3
4#include "evas_common_private.h" 4#include "evas_common_private.h"
5#include "evas_cs2.h"
5 6
6struct _Data_Entry { 7struct _Data_Entry {
7 unsigned int image_id; 8 unsigned int image_id;
@@ -17,8 +18,30 @@ struct _Data_Entry {
17 } shm; 18 } shm;
18}; 19};
19 20
21struct _Index_Table {
22 struct {
23 char path[64];
24 Eina_File *f;
25 const Shared_Array_Header *header;
26 const File_Data *entries;
27 } files;
28 struct {
29 char path[64];
30 Eina_File *f;
31 const Shared_Array_Header *header;
32 const Image_Data *entries;
33 } images;
34 struct {
35 char path[64];
36 Eina_File *f;
37 const Shared_Array_Header *header;
38 const void *entries; // FIXME
39 } fonts;
40};
41
20typedef struct _Data_Entry Data_Entry; 42typedef struct _Data_Entry Data_Entry;
21typedef struct _Font_Entry Font_Entry; 43typedef struct _Font_Entry Font_Entry;
44typedef struct _Index_Table Index_Table;
22 45
23int evas_cserve2_init(void); 46int evas_cserve2_init(void);
24int evas_cserve2_shutdown(void); 47int evas_cserve2_shutdown(void);