summaryrefslogtreecommitdiffstats
path: root/rpc/rpc-lib/src/rpc-transport.h
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2010-08-17 23:58:37 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-08-18 00:37:08 -0700
commit0b890833c8cba9bac71877e528d810eba91dd1e6 (patch)
treee180e57fbc059108bf58e08b337b38f4bcbe3d38 /rpc/rpc-lib/src/rpc-transport.h
parent4e01a54eaa6da1bd6817d62dcc51a75e22699e2b (diff)
rpc: add rpc_req structure to request_info structure, used by transport layer to get corresponding request to reply received.
Signed-off-by: Raghavendra G <raghavendra@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 875 (Implement a new protocol to provide proper backward/forward compatibility) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=875
Diffstat (limited to 'rpc/rpc-lib/src/rpc-transport.h')
-rw-r--r--rpc/rpc-lib/src/rpc-transport.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/rpc/rpc-lib/src/rpc-transport.h b/rpc/rpc-lib/src/rpc-transport.h
index a6a3441dcdd..c5b6f382e7b 100644
--- a/rpc/rpc-lib/src/rpc-transport.h
+++ b/rpc/rpc-lib/src/rpc-transport.h
@@ -146,11 +146,15 @@ struct rpc_transport_data {
};
typedef struct rpc_transport_data rpc_transport_data_t;
+/* FIXME: prognum, procnum and progver are already present in
+ * rpc_request, hence these should be removed from request_info
+ */
struct rpc_request_info {
uint32_t xid;
int prognum;
int progver;
int procnum;
+ void *rpc_req; /* struct rpc_req */
rpc_transport_rsp_t rsp;
};
typedef struct rpc_request_info rpc_request_info_t;