Message_Type for slave.
This is the command that must be given to the slave, instead of the
message type received from the client.
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@71602
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
typedef enum {
IMAGE_OPEN,
IMAGE_LOAD,
typedef enum {
IMAGE_OPEN,
IMAGE_LOAD,
+ FONT_LOAD,
+ FONT_GLYPHS_LOAD,
SLAVE_QUIT,
ERROR
} Slave_Command;
SLAVE_QUIT,
ERROR
} Slave_Command;
{
Font_Request_Type rtype;
Slave_Type stype;
{
Font_Request_Type rtype;
Slave_Type stype;
- { CSERVE2_REQ_FONT_LOAD, SLAVE_FONT, CSERVE2_FONT_LOAD },
- { CSERVE2_REQ_FONT_GLYPHS_LOAD, SLAVE_FONT, CSERVE2_FONT_GLYPHS_LOAD },
+ { CSERVE2_REQ_FONT_LOAD, SLAVE_FONT, FONT_LOAD },
+ { CSERVE2_REQ_FONT_GLYPHS_LOAD, SLAVE_FONT, GLYPHS_LOAD },
{ CSERVE2_REQ_LAST, 0 }
};
{ CSERVE2_REQ_LAST, 0 }
};
-_cserve2_request_dispatch(Slave_Worker *sw, Message_Type mtype, Font_Request *req)
+_cserve2_request_dispatch(Slave_Worker *sw, Slave_Command ctype, Font_Request *req)
{
int size;
char *slave_msg = req->funcs->msg_create(req->data, &size);
{
int size;
char *slave_msg = req->funcs->msg_create(req->data, &size);
req->msg = slave_msg;
sw->data = req;
req->msg = slave_msg;
sw->data = req;
- cserve2_slave_send(sw->slave, mtype, slave_msg, size);
+ cserve2_slave_send(sw->slave, ctype, slave_msg, size);
req->processing = EINA_TRUE;
return EINA_TRUE;
req->processing = EINA_TRUE;
return EINA_TRUE;
for (rtype = 0; rtype < CSERVE2_REQ_LAST; rtype++)
{
Slave_Type type = SLAVE_NONE;
for (rtype = 0; rtype < CSERVE2_REQ_LAST; rtype++)
{
Slave_Type type = SLAVE_NONE;
unsigned int max_workers;
Eina_List **idle, **working;
unsigned int max_workers;
Eina_List **idle, **working;
if (_request_match[j].rtype == j)
{
type = _request_match[j].stype;
if (_request_match[j].rtype == j)
{
type = _request_match[j].stype;
- mtype = _request_match[j].mtype;
+ ctype = _request_match[j].ctype;
}
sw = eina_list_data_get(*idle);
}
sw = eina_list_data_get(*idle);
- if (!_cserve2_request_dispatch(sw, mtype, req))
+ if (!_cserve2_request_dispatch(sw, ctype, req))
{
ERR("Could not dispatch request.");
_cserve2_request_failed(req, CSERVE2_GENERIC);
{
ERR("Could not dispatch request.");
_cserve2_request_failed(req, CSERVE2_GENERIC);