From a97a4f99cc68a58c133f249e17c8677651103ca9 Mon Sep 17 00:00:00 2001 From: Rafael Antognolli Date: Wed, 23 May 2012 18:10:10 +0000 Subject: [PATCH] evas/cserve2: Adding some font structs to the cache. This will allow to create answer messages based on the content of these structs. SVN revision: 71361 --- legacy/evas/src/bin/evas_cserve2_cache.c | 26 ++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/legacy/evas/src/bin/evas_cserve2_cache.c b/legacy/evas/src/bin/evas_cserve2_cache.c index e05d88cb6f..20fe99af96 100644 --- a/legacy/evas/src/bin/evas_cserve2_cache.c +++ b/legacy/evas/src/bin/evas_cserve2_cache.c @@ -16,6 +16,10 @@ typedef struct _File_Data File_Data; typedef struct _Image_Data Image_Data; typedef struct _File_Watch File_Watch; +typedef struct _Font_Entry Font_Entry; +typedef struct _Font_Cache Font_Cache; +typedef struct _Glyph_Entry Glyph_Entry; + typedef void *(*Request_Msg_Create)(Entry *e, int *size); typedef void (*Request_Response)(Entry *e, void *resp); typedef void (*Request_Error)(Entry *e, Error_Type error); @@ -78,6 +82,28 @@ struct _Image_Data { Eina_Bool doload : 1; }; +struct _Font_Entry { +}; + +struct _Font_Cache { + Font_Entry *fe; + struct { + const char *name; + void *data; + unsigned int size; + unsigned int usage; + } shm; + Eina_Inlist *glyphs; +}; + +struct _Glyph_Entry { + EINA_INLIST; + Font_Entry *fe; + Font_Cache *fi; + unsigned int index; + unsigned int offset; +}; + struct _Reference { Client *client; Entry *entry;