]> rtime.felk.cvut.cz Git - frescor/forb.git/commitdiff
Fixed typography.
authorPetr Benes <benesp16@fel.cvut.cz>
Tue, 8 Feb 2011 14:38:21 +0000 (15:38 +0100)
committerPetr Benes <benesp16@fel.cvut.cz>
Tue, 8 Feb 2011 14:38:21 +0000 (15:38 +0100)
src/exec_req.c
src/exec_req.h
src/iop.c

index 028c532411361085a73ba7124ff26836be430ba6..e836dd18b84ccf9b62c87e3d9e2c3ce7eb2c95f2 100644 (file)
@@ -95,7 +95,7 @@ void forb_exec_req_process(forb_exec_req_t *exec_req)
                                         &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);
index b8e2147a0fe9a950c49945cd51307aa50b801786..f496df9d4f89b32fd344d2895cb35c106f44a1fa 100644 (file)
 #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
 };
 
 /**
@@ -83,7 +83,7 @@ typedef struct forb_exec_req {
        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;
 
index 248f94ab421b876374e8881a53cb288c6794e34f..f010ac4f3129525bf98f2d044e1ec2ef35ab7179 100644 (file)
--- a/src/iop.c
+++ b/src/iop.c
@@ -388,7 +388,7 @@ process_request(forb_port_t *port, FORB_CDR_Codec *codec, uint32_t message_size)
        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;
@@ -755,7 +755,7 @@ forb_request_send(forb_request_t *req, CORBA_Environment *env)
        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;