22 CSERVE2_FONT_GLYPHS_LOAD,
23 CSERVE2_FONT_GLYPHS_LOADED,
24 CSERVE2_FONT_GLYPHS_USED,
33 CSERVE2_DOES_NOT_EXIST,
34 CSERVE2_PERMISSION_DENIED,
35 CSERVE2_RESOURCE_ALLOCATION_FAILED,
37 CSERVE2_UNKNOWN_FORMAT,
38 CSERVE2_INVALID_COMMAND,
40 CSERVE2_LOADER_EXEC_ERR,
41 CSERVE2_INVALID_CACHE, // invalid cserve cache entry
43 CSERVE2_REQUEST_CANCEL
51 typedef struct _Msg_Base Msg_Base;
66 int loop_hint; /* include Evas.h? Copy the enum around? */
74 unsigned int image_id;
80 Eina_Bool orientation;
84 struct _Msg_Setoptsed {
90 unsigned int image_id;
101 Eina_Bool alpha_sparse : 1;
104 struct _Msg_Preload {
106 unsigned int image_id;
109 struct _Msg_Preloaded {
115 unsigned int image_id;
120 unsigned int file_id;
124 * @struct _Msg_Font_Load
126 * Message from client to request load or unload of a font.
128 * The path strings follow the struct inside the message.
130 struct _Msg_Font_Load {
132 unsigned int sourcelen; // font id
133 unsigned int pathlen; // font id
134 unsigned int rend_flags; // font id
135 unsigned int size; // font id
136 unsigned int dpi; // font id
140 * @struct _Msg_Font_Loaded
142 * Message from server to inform that a font was loaded.
144 struct _Msg_Font_Loaded {
149 * @struct _Msg_Font_Glyphs_Request
151 * Message from client to request load of glyphs, or inform usage of them.
153 * The path strings follow the struct inside the message, as well as
154 * the list of glyphs to be loaded.
156 struct _Msg_Font_Glyphs_Request {
158 unsigned int sourcelen; // font id
159 unsigned int pathlen; // font id
160 unsigned int rend_flags; // font id
161 unsigned int size; // font id
162 unsigned int dpi; // font id
164 unsigned int nglyphs;
168 * @struct _Msg_Font_Glyphs_Loaded
170 * Message from server to inform that some glyphs were loaded.
172 * This message is quite complex: it contains the font id, representing for
173 * which font these glyphs should be loaded, and the number of caches on which
174 * the loaded glyphs are stored. Each cache is a SHM segment. The information
175 * about each SHM comes serialized just after this struct, and can be read in
179 * - unsigned int size;
182 * - unsigned int nglyphs;
184 * unsigned int index;
185 * unsigned int offset;
188 * unsigned int width;
189 * unsigned int pitch;
190 * unsigned int num_grays;
191 * unsigned int pixel_mode;
194 struct _Msg_Font_Glyphs_Loaded {
196 unsigned int ncaches;
202 unsigned int requested_size;
203 unsigned int real_size;
204 unsigned int unused_size;
205 unsigned int fonts_loaded; /* number of loaded fonts */
206 unsigned int fonts_unused; /* number of loaded fonts without reference
207 * from any clients */
208 int fonts_load_time; /* total time spent loading fonts */
209 int fonts_used_load_time; /* total time spent loading fonts that are
210 * really used, i.e. fonts that have glyphs
212 int fonts_used_saved_time;
213 int glyphs_load_time; /* total time spent loading glyphs */
214 int glyphs_saved_time; /* total time spent loading glyphs */
217 unsigned int files_loaded; /* number of file headers loaded */
218 unsigned int images_loaded; /* number of image data loaded */
219 unsigned int images_unused; /* number of image data loaded and unused */
221 unsigned int requested_size; /* memory usage originally requested by
223 unsigned int files_size; /* memory usage from image headers */
224 unsigned int images_size; /* memory usage from image data */
225 unsigned int unused_size; /* memory usage from image data */
228 int files_saved_time;
229 int images_load_time;
230 int images_saved_time;
235 * @struct _Msg_Font_Debug
237 * Message from server containing all font cache info.
239 * Content of the message follows:
241 * * number of font entries;
243 * - unsigned int filelen
245 * - unsigned int namelen
247 * - unsigned int rend_flags;
248 * - unsigned int size;
249 * - unsigned int dpi;
250 * - unsigned int unused;
253 * * usigned int shmnamelen;
254 * * const char shmname;
255 * * unsigned int size;
256 * * unsigned int usage;
257 * * unsigned int nglyphs;
259 * - unsigned int index;
260 * - unsigned int offset;
261 * - unsigned int size;
262 * - unsigned int rows;
263 * - unsigned int width;
264 * - unsigned int pitch;
265 * - unsigned int num_grays;
266 * - unsigned int pixel_mode;
268 struct _Msg_Font_Debug {
277 typedef struct _Msg_Open Msg_Open;
278 typedef struct _Msg_Opened Msg_Opened;
279 typedef struct _Msg_Setopts Msg_Setopts;
280 typedef struct _Msg_Setoptsed Msg_Setoptsed;
281 typedef struct _Msg_Load Msg_Load;
282 typedef struct _Msg_Loaded Msg_Loaded;
283 typedef struct _Msg_Preload Msg_Preload;
284 typedef struct _Msg_Preloaded Msg_Preloaded;
285 typedef struct _Msg_Unload Msg_Unload;
286 typedef struct _Msg_Close Msg_Close;
287 typedef struct _Msg_Font_Load Msg_Font_Load;
288 typedef struct _Msg_Font_Loaded Msg_Font_Loaded;
289 typedef struct _Msg_Font_Glyphs_Request Msg_Font_Glyphs_Request;
290 typedef struct _Msg_Font_Glyphs_Loaded Msg_Font_Glyphs_Loaded;
291 typedef struct _Msg_Stats Msg_Stats;
292 typedef struct _Msg_Font_Debug Msg_Font_Debug;
293 typedef struct _Msg_Error Msg_Error;