typedef struct _Slave_Request Slave_Request;
typedef struct _Slave_Request_Funcs Slave_Request_Funcs;
+/* This enum must be kept in sync with lib/evas/include/evas_common.h */
typedef enum {
- FONT_REND_REGULAR = 1,
- FONT_REND_SLANT = 1 << 1,
- FONT_REND_WEIGHT = 1 << 2
+ FONT_REND_REGULAR = 0,
+ FONT_REND_SLANT = (1 << 0),
+ FONT_REND_WEIGHT = (1 << 2)
} Font_Rend_Flags;
typedef enum {
ev.data.ptr = w_data;
err = epoll_ctl(epoll_fd, EPOLL_CTL_ADD, fd, &ev);
- if (!err < 0)
+ if (err < 0)
{
ERR("Could not create epoll watch for fd %d.", fd);
eina_hash_del(watch_list, &fd, NULL);
* of the request types on it is the order in which these requests will
* be processed.
*/
-static struct _Request_Match
+static const struct _Request_Match
{
Slave_Request_Type rtype;
Slave_Type stype;
{ CSERVE2_REQ_IMAGE_SPEC_LOAD, SLAVE_IMAGE, IMAGE_LOAD, 1 },
{ CSERVE2_REQ_FONT_LOAD, SLAVE_FONT, FONT_LOAD, 0 },
{ CSERVE2_REQ_FONT_GLYPHS_LOAD, SLAVE_FONT, FONT_GLYPHS_LOAD, 0 },
- { CSERVE2_REQ_LAST, 0, 0, 0 }
+ { CSERVE2_REQ_LAST, SLAVE_NONE, ERROR, 0 }
};
static Slave *_create_image_slave(void *data);