22 CSERVE2_FONT_GLYPHS_LOAD,
23 CSERVE2_FONT_GLYPHS_LOADED,
24 CSERVE2_FONT_GLYPHS_USED,
31 CSERVE2_DOES_NOT_EXIST,
32 CSERVE2_PERMISSION_DENIED,
33 CSERVE2_RESOURCE_ALLOCATION_FAILED,
35 CSERVE2_UNKNOWN_FORMAT,
36 CSERVE2_INVALID_COMMAND,
38 CSERVE2_LOADER_EXEC_ERR,
39 CSERVE2_INVALID_CACHE, // invalid cserve cache entry
41 CSERVE2_REQUEST_CANCEL
49 typedef struct _Msg_Base Msg_Base;
64 int loop_hint; /* include Evas.h? Copy the enum around? */
72 unsigned int image_id;
78 Eina_Bool orientation;
82 struct _Msg_Setoptsed {
88 unsigned int image_id;
99 Eina_Bool alpha_sparse : 1;
102 struct _Msg_Preload {
104 unsigned int image_id;
107 struct _Msg_Preloaded {
113 unsigned int image_id;
118 unsigned int file_id;
122 * @struct _Msg_Font_Load
124 * Message from client to request load or unload of a font.
126 * The path strings follow the struct inside the message.
128 struct _Msg_Font_Load {
130 unsigned int pathlen; // font id
131 unsigned int rend_flags; // font id
132 unsigned int hint; // font id
133 unsigned int size; // font id
134 unsigned int dpi; // font id
138 * @struct _Msg_Font_Loaded
140 * Message from server to inform that a font was loaded.
142 struct _Msg_Font_Loaded {
147 * @struct _Msg_Font_Glyphs_Request
149 * Message from client to request load of glyphs, of inform usage of them.
151 * The path strings follow the struct inside the message, as well as
152 * the list of glyphs to be loaded.
154 struct _Msg_Font_Glyphs_Request {
156 unsigned int pathlen; // font id
157 unsigned int rend_flags; // font id
158 unsigned int hint; // font id
159 unsigned int size; // font id
160 unsigned int dpi; // font id
161 unsigned int nglyphs;
165 * @struct _Msg_Font_Glyphs_Loaded
167 * Message from server to inform that some glyphs were loaded.
169 * This message is quite complex: it contains the font id, representing for
170 * which font these glyphs should be loaded, and the number of caches on which
171 * the loaded glyphs are stored. Each cache is a SHM segment. The information
172 * about each SHM comes serialized just after this struct, and can be read in
176 * - unsigned int size;
179 * - unsigned int nglyphs;
181 * unsigned int index;
182 * unsigned int offset;
185 struct _Msg_Font_Glyphs_Loaded {
187 unsigned int ncaches;
195 typedef struct _Msg_Open Msg_Open;
196 typedef struct _Msg_Opened Msg_Opened;
197 typedef struct _Msg_Setopts Msg_Setopts;
198 typedef struct _Msg_Setoptsed Msg_Setoptsed;
199 typedef struct _Msg_Load Msg_Load;
200 typedef struct _Msg_Loaded Msg_Loaded;
201 typedef struct _Msg_Preload Msg_Preload;
202 typedef struct _Msg_Preloaded Msg_Preloaded;
203 typedef struct _Msg_Unload Msg_Unload;
204 typedef struct _Msg_Close Msg_Close;
205 typedef struct _Msg_Font_Load Msg_Font_Load;
206 typedef struct _Msg_Font_Loaded Msg_Font_Loaded;
207 typedef struct _Msg_Font_Glyphs_Request Msg_Font_Glyphs_Request;
208 typedef struct _Msg_Font_Glyphs_Loaded Msg_Font_Glyphs_Loaded;
209 typedef struct _Msg_Error Msg_Error;