21 CSERVE2_FONT_GLYPHS_LOAD,
22 CSERVE2_FONT_GLYPHS_LOADED,
23 CSERVE2_FONT_GLYPHS_USED,
32 CSERVE2_DOES_NOT_EXIST,
33 CSERVE2_PERMISSION_DENIED,
34 CSERVE2_RESOURCE_ALLOCATION_FAILED,
36 CSERVE2_UNKNOWN_FORMAT,
37 CSERVE2_INVALID_COMMAND,
39 CSERVE2_LOADER_EXEC_ERR,
40 CSERVE2_INVALID_CACHE, // invalid cserve cache entry
42 CSERVE2_REQUEST_CANCEL
50 typedef struct _Msg_Base Msg_Base;
65 int loop_hint; /* include Evas.h? Copy the enum around? */
73 unsigned int image_id;
79 Eina_Bool orientation;
83 struct _Msg_Setoptsed {
89 unsigned int image_id;
100 Eina_Bool alpha_sparse : 1;
103 struct _Msg_Preload {
105 unsigned int image_id;
108 struct _Msg_Preloaded {
114 unsigned int image_id;
119 unsigned int file_id;
123 * @struct _Msg_Font_Load
125 * Message from client to request load or unload of a font.
127 * The path strings follow the struct inside the message.
129 struct _Msg_Font_Load {
131 unsigned int sourcelen; // font id
132 unsigned int pathlen; // font id
133 unsigned int rend_flags; // font id
134 unsigned int size; // font id
135 unsigned int dpi; // font id
139 * @struct _Msg_Font_Loaded
141 * Message from server to inform that a font was loaded.
143 struct _Msg_Font_Loaded {
148 * @struct _Msg_Font_Glyphs_Request
150 * Message from client to request load of glyphs, or inform usage of them.
152 * The path strings follow the struct inside the message, as well as
153 * the list of glyphs to be loaded.
155 struct _Msg_Font_Glyphs_Request {
157 unsigned int sourcelen; // font id
158 unsigned int pathlen; // font id
159 unsigned int rend_flags; // font id
160 unsigned int size; // font id
161 unsigned int dpi; // font id
163 unsigned int nglyphs;
167 * @struct _Msg_Font_Glyphs_Loaded
169 * Message from server to inform that some glyphs were loaded.
171 * This message is quite complex: it contains the font id, representing for
172 * which font these glyphs should be loaded, and the number of caches on which
173 * the loaded glyphs are stored. Each cache is a SHM segment. The information
174 * about each SHM comes serialized just after this struct, and can be read in
178 * - unsigned int size;
181 * - unsigned int nglyphs;
183 * unsigned int index;
184 * unsigned int offset;
187 * unsigned int width;
188 * unsigned int pitch;
189 * unsigned int num_grays;
190 * unsigned int pixel_mode;
193 struct _Msg_Font_Glyphs_Loaded {
195 unsigned int ncaches;
201 unsigned int requested_size;
202 unsigned int real_size;
203 unsigned int unused_size;
204 unsigned int fonts_loaded; /* number of loaded fonts */
205 unsigned int fonts_unused; /* number of loaded fonts without reference
206 * from any clients */
207 int fonts_load_time; /* total time spent loading fonts */
208 int fonts_used_load_time; /* total time spent loading fonts that are
209 * really used, i.e. fonts that have glyphs
211 int fonts_used_saved_time;
212 int glyphs_request_time; /* time spent waiting for glyph requests */
213 int glyphs_load_time; /* total time spent loading glyphs */
214 int glyphs_render_time; /* total time spent rendering glyphs */
215 int glyphs_slave_time; /* total time spent on the slave processing glyph load requests */
216 int glyphs_saved_time; /* total time spent loading glyphs */
219 unsigned int files_loaded; /* number of file headers loaded */
220 unsigned int images_loaded; /* number of image data loaded */
221 unsigned int images_unused; /* number of image data loaded and unused */
223 unsigned int requested_size; /* memory usage originally requested by
225 unsigned int files_size; /* memory usage from image headers */
226 unsigned int images_size; /* memory usage from image data */
227 unsigned int unused_size; /* memory usage from image data */
230 int files_saved_time;
231 int images_load_time;
232 int images_saved_time;
237 * @struct _Msg_Font_Debug
239 * Message from server containing all font cache info.
241 * Content of the message follows:
243 * * number of font entries;
245 * - unsigned int filelen
247 * - unsigned int namelen
249 * - unsigned int rend_flags;
250 * - unsigned int size;
251 * - unsigned int dpi;
252 * - unsigned int unused;
255 * * usigned int shmnamelen;
256 * * const char shmname;
257 * * unsigned int size;
258 * * unsigned int usage;
259 * * unsigned int nglyphs;
261 * - unsigned int index;
262 * - unsigned int offset;
263 * - unsigned int size;
264 * - unsigned int rows;
265 * - unsigned int width;
266 * - unsigned int pitch;
267 * - unsigned int num_grays;
268 * - unsigned int pixel_mode;
270 struct _Msg_Font_Debug {
279 typedef struct _Msg_Open Msg_Open;
280 typedef struct _Msg_Opened Msg_Opened;
281 typedef struct _Msg_Setopts Msg_Setopts;
282 typedef struct _Msg_Setoptsed Msg_Setoptsed;
283 typedef struct _Msg_Load Msg_Load;
284 typedef struct _Msg_Loaded Msg_Loaded;
285 typedef struct _Msg_Preload Msg_Preload;
286 typedef struct _Msg_Preloaded Msg_Preloaded;
287 typedef struct _Msg_Unload Msg_Unload;
288 typedef struct _Msg_Close Msg_Close;
289 typedef struct _Msg_Font_Load Msg_Font_Load;
290 typedef struct _Msg_Font_Loaded Msg_Font_Loaded;
291 typedef struct _Msg_Font_Glyphs_Request Msg_Font_Glyphs_Request;
292 typedef struct _Msg_Font_Glyphs_Loaded Msg_Font_Glyphs_Loaded;
293 typedef struct _Msg_Stats Msg_Stats;
294 typedef struct _Msg_Font_Debug Msg_Font_Debug;
295 typedef struct _Msg_Error Msg_Error;