&env);
// The local invocation case
- if ((exec_req->request_type = local)) {
+ if ((exec_req->request_type = FORB_EXEC_REQ_LOCAL)) {
*(exec_req->input_request->cdr_reply) = reply_codec; //FIXME: better without copying?
// notify that the reply is ready
forb_syncobj_signal(&exec_req->input_request->reply_ready);
#include "request.h"
/**
- * Distinguishing execution methods of a request.
+ * Type of request (local/remote)
*/
-enum FORB_EXEC_REQ_TYPE {
- local, // no serialization used
- remote
+enum forb_exec_req_type {
+ FORB_EXEC_REQ_LOCAL, // no serialization used
+ FORB_EXEC_REQ_REMOTE
};
/**
unsigned method_index; /**< Mehotd number to be invoked on the object @a obj. */
FORB_CDR_Codec codec; /**< Bufffer with serialized request parameters. */
ul_list_node_t node; /**< Node for forb_executor_t::requests. */
- enum FORB_EXEC_REQ_TYPE request_type; /**< Execution method. */
+ enum forb_exec_req_type request_type; /**< Execution method. */
forb_request_t *input_request; /**< Input request data for the case of local invocation */
} forb_exec_req_t;
exec_req = forb_malloc(sizeof(*exec_req));
if (exec_req) {
memset(exec_req, 0, sizeof(exec_req));
- exec_req->request_type = remote;
+ exec_req->request_type = FORB_EXEC_REQ_REMOTE;
exec_req->request_id = request_header.request_id;
exec_req->source = request_header.source;
exec_req->obj = obj;
if (forb_object_is_local(req->obj)) {
exec_req = forb_malloc(sizeof(*exec_req));
memset(exec_req, 0, sizeof(exec_req));
- exec_req->request_type = local;
+ exec_req->request_type = FORB_EXEC_REQ_LOCAL;
exec_req->input_request = req;
exec_req->obj = exec_req->input_request->obj;
//exec_req->method_index = req.method_index;