evas/cserve2: Adding some font structs to the cache.
authorantognolli <antognolli@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 23 May 2012 18:10:10 +0000 (18:10 +0000)
committerantognolli <antognolli@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 23 May 2012 18:10:10 +0000 (18:10 +0000)
This will allow to create answer messages based on the content of these
structs.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@71361 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/bin/evas_cserve2_cache.c

index e05d88c..20fe99a 100644 (file)
@@ -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;