summaryrefslogtreecommitdiff
path: root/src/lib/evas/cserve2/evas_cs2.h
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2013-07-29 15:41:23 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2013-10-28 15:47:13 +0900
commit88ef4131a0df0735ebef19306285b4bea608cbab (patch)
treed59961ffc1c7a6253c3e5ac2a2be300d18c94b25 /src/lib/evas/cserve2/evas_cs2.h
parent47be3a2b819ed6319a65018195b31b622b547aab (diff)
evas/cserve2: Share paths of index tables with clients
- Send paths to all connected clients - Send paths upon connection from a new client - Client side: - Fast find opened images - Fast find loaded images - Optimize load by skipping socket wait Also, remap indexes when needed (file size changed) When index file grows, the clients are not notified, so they must constantly check that their mapping matches the current array size.
Diffstat (limited to 'src/lib/evas/cserve2/evas_cs2.h')
-rw-r--r--src/lib/evas/cserve2/evas_cs2.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lib/evas/cserve2/evas_cs2.h b/src/lib/evas/cserve2/evas_cs2.h
index d47a02aac9..7cb6e08375 100644
--- a/src/lib/evas/cserve2/evas_cs2.h
+++ b/src/lib/evas/cserve2/evas_cs2.h
@@ -275,12 +275,15 @@ struct _Msg_Font_Debug {
275 */ 275 */
276struct _Msg_Index_List { 276struct _Msg_Index_List {
277 Msg_Base base; 277 Msg_Base base;
278 char strings_index_path[64];
279 char strings_entries_path[64];
278 char files_index_path[64]; 280 char files_index_path[64];
279 char images_index_path[64]; 281 char images_index_path[64];
280 char fonts_index_path[64]; 282 char fonts_index_path[64];
281}; 283};
282 284
283typedef struct _Shm_Object Shm_Object; 285typedef struct _Shm_Object Shm_Object;
286typedef struct _Index_Entry Index_Entry;
284typedef struct _File_Data File_Data; 287typedef struct _File_Data File_Data;
285typedef struct _Image_Data Image_Data; 288typedef struct _Image_Data Image_Data;
286typedef struct _Shared_Array_Header Shared_Array_Header; 289typedef struct _Shared_Array_Header Shared_Array_Header;
@@ -304,6 +307,15 @@ struct _Shm_Object
304 SHMOBJECT; 307 SHMOBJECT;
305}; 308};
306 309
310struct _Index_Entry
311{
312 SHMOBJECT;
313 // Block entry
314 int32_t length;
315 int32_t offset;
316 int32_t shmid;
317};
318
307struct _File_Data { 319struct _File_Data {
308 SHMOBJECT; 320 SHMOBJECT;
309 string_t path; 321 string_t path;