diff options
author | Pranith K <pranithk@gluster.com> | 2011-03-10 02:19:20 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2011-03-10 08:09:42 -0800 |
commit | 970b22e377e20408df8646cdc61a968b55c145b1 (patch) | |
tree | f28637bd60813a30bc4b9a37b7d3b7cac93250cf /rpc/xdr/src/glusterd1-xdr.h | |
parent | 332508e8e3b5cd2ffe1c68e496d294d4fef2dea4 (diff) |
rpc/xdr: Add gluster profile and brick op structures
Signed-off-by: Pranith Kumar K <pranithk@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
BUG: 1965 (need a cmd to get io-stat details)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1965
Diffstat (limited to 'rpc/xdr/src/glusterd1-xdr.h')
-rw-r--r-- | rpc/xdr/src/glusterd1-xdr.h | 31 |
1 files changed, 28 insertions, 3 deletions
diff --git a/rpc/xdr/src/glusterd1-xdr.h b/rpc/xdr/src/glusterd1-xdr.h index ca57059d829..45f860b86e5 100644 --- a/rpc/xdr/src/glusterd1-xdr.h +++ b/rpc/xdr/src/glusterd1-xdr.h @@ -23,8 +23,8 @@ * It was generated using rpcgen. */ -#ifndef _GLUSTERD1_H_RPCGEN -#define _GLUSTERD1_H_RPCGEN +#ifndef _GLUSTERD1_XDR_H_RPCGEN +#define _GLUSTERD1_XDR_H_RPCGEN #include <rpc/rpc.h> @@ -181,6 +181,27 @@ struct gd1_mgmt_friend_update_rsp { }; typedef struct gd1_mgmt_friend_update_rsp gd1_mgmt_friend_update_rsp; +struct gd1_mgmt_brick_op_req { + char *name; + int op; + struct { + u_int input_len; + char *input_val; + } input; +}; +typedef struct gd1_mgmt_brick_op_req gd1_mgmt_brick_op_req; + +struct gd1_mgmt_brick_op_rsp { + int op_ret; + int op_errno; + struct { + u_int output_len; + char *output_val; + } output; + char *op_errstr; +}; +typedef struct gd1_mgmt_brick_op_rsp gd1_mgmt_brick_op_rsp; + /* the xdr functions */ #if defined(__STDC__) || defined(__cplusplus) @@ -201,6 +222,8 @@ extern bool_t xdr_gd1_mgmt_commit_op_req (XDR *, gd1_mgmt_commit_op_req*); extern bool_t xdr_gd1_mgmt_commit_op_rsp (XDR *, gd1_mgmt_commit_op_rsp*); extern bool_t xdr_gd1_mgmt_friend_update (XDR *, gd1_mgmt_friend_update*); extern bool_t xdr_gd1_mgmt_friend_update_rsp (XDR *, gd1_mgmt_friend_update_rsp*); +extern bool_t xdr_gd1_mgmt_brick_op_req (XDR *, gd1_mgmt_brick_op_req*); +extern bool_t xdr_gd1_mgmt_brick_op_rsp (XDR *, gd1_mgmt_brick_op_rsp*); #else /* K&R C */ extern bool_t xdr_glusterd_volume_status (); @@ -220,6 +243,8 @@ extern bool_t xdr_gd1_mgmt_commit_op_req (); extern bool_t xdr_gd1_mgmt_commit_op_rsp (); extern bool_t xdr_gd1_mgmt_friend_update (); extern bool_t xdr_gd1_mgmt_friend_update_rsp (); +extern bool_t xdr_gd1_mgmt_brick_op_req (); +extern bool_t xdr_gd1_mgmt_brick_op_rsp (); #endif /* K&R C */ @@ -227,4 +252,4 @@ extern bool_t xdr_gd1_mgmt_friend_update_rsp (); } #endif -#endif /* !_GLUSTERD1_H_RPCGEN */ +#endif /* !_GLUSTERD1-XDR_H_RPCGEN */ |