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/cli1-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/cli1-xdr.h')
-rw-r--r-- | rpc/xdr/src/cli1-xdr.h | 84 |
1 files changed, 58 insertions, 26 deletions
diff --git a/rpc/xdr/src/cli1-xdr.h b/rpc/xdr/src/cli1-xdr.h index 2e37e1bc2..0ca38b36b 100644 --- a/rpc/xdr/src/cli1-xdr.h +++ b/rpc/xdr/src/cli1-xdr.h @@ -23,8 +23,8 @@ * It was generated using rpcgen. */ -#ifndef _CLI1_H_RPCGEN -#define _CLI1_H_RPCGEN +#ifndef _CLI1_XDR_H_RPCGEN +#define _CLI1_XDR_H_RPCGEN #include <rpc/rpc.h> #include "xdr-common.h" @@ -75,17 +75,25 @@ enum gf1_cli_op_flags { typedef enum gf1_cli_op_flags gf1_cli_op_flags; enum gf1_cli_gsync_set { - GF_GSYNC_OPTION_TYPE_NONE = 0, - GF_GSYNC_OPTION_TYPE_START = 1, - GF_GSYNC_OPTION_TYPE_STOP = 2, - GF_GSYNC_OPTION_TYPE_CONFIGURE = 3, - GF_GSYNC_OPTION_TYPE_CONFIG_SET = 4, - GF_GSYNC_OPTION_TYPE_CONFIG_DEL = 5, - GF_GSYNC_OPTION_TYPE_CONFIG_GET = 6, - GF_GSYNC_OPTION_TYPE_CONFIG_GET_ALL = 7, + GF_GSYNC_OPTION_TYPE_NONE = 0, + GF_GSYNC_OPTION_TYPE_START = 1, + GF_GSYNC_OPTION_TYPE_STOP = 2, + GF_GSYNC_OPTION_TYPE_CONFIGURE = 3, + GF_GSYNC_OPTION_TYPE_CONFIG_SET = 4, + GF_GSYNC_OPTION_TYPE_CONFIG_DEL = 5, + GF_GSYNC_OPTION_TYPE_CONFIG_GET = 6, + GF_GSYNC_OPTION_TYPE_CONFIG_GET_ALL = 7, }; typedef enum gf1_cli_gsync_set gf1_cli_gsync_set; +enum gf1_cli_stats_op { + GF_CLI_STATS_NONE = 0, + GF_CLI_STATS_START = 1, + GF_CLI_STATS_STOP = 2, + GF_CLI_STATS_INFO = 3, +}; +typedef enum gf1_cli_stats_op gf1_cli_stats_op; + struct gf1_cli_probe_req { char *hostname; int port; @@ -415,36 +423,54 @@ struct gf1_cli_fsm_log_rsp { typedef struct gf1_cli_fsm_log_rsp gf1_cli_fsm_log_rsp; struct gf1_cli_gsync_set_req { - struct { - u_int dict_len; - char *dict_val; - } dict; + struct { + u_int dict_len; + char *dict_val; + } dict; }; typedef struct gf1_cli_gsync_set_req gf1_cli_gsync_set_req; struct gf1_cli_gsync_set_rsp { - int op_ret; - int op_errno; - char *op_errstr; - int type; - int config_type; - char *op_name; - char *master; - char *slave; - char *gsync_prefix; + int op_ret; + int op_errno; + char *op_errstr; + int type; + int config_type; + char *op_name; + char *master; + char *slave; + char *gsync_prefix; }; typedef struct gf1_cli_gsync_set_rsp gf1_cli_gsync_set_rsp; +struct gf1_cli_stats_volume_req { + char *volname; + gf1_cli_stats_op op; +}; +typedef struct gf1_cli_stats_volume_req gf1_cli_stats_volume_req; + +struct gf1_cli_stats_volume_rsp { + int op_ret; + int op_errno; + char *op_errstr; + struct { + u_int stats_info_len; + char *stats_info_val; + } stats_info; +}; +typedef struct gf1_cli_stats_volume_rsp gf1_cli_stats_volume_rsp; + /* the xdr functions */ #if defined(__STDC__) || defined(__cplusplus) extern bool_t xdr_gf1_cluster_type (XDR *, gf1_cluster_type*); extern bool_t xdr_gf1_cli_replace_op (XDR *, gf1_cli_replace_op*); -extern bool_t xdr_gf1_cli_gsync_set (XDR *, gf1_cli_gsync_set*); extern bool_t xdr_gf1_cli_friends_list (XDR *, gf1_cli_friends_list*); extern bool_t xdr_gf1_cli_get_volume (XDR *, gf1_cli_get_volume*); extern bool_t xdr_gf1_cli_sync_volume (XDR *, gf1_cli_sync_volume*); extern bool_t xdr_gf1_cli_op_flags (XDR *, gf1_cli_op_flags*); +extern bool_t xdr_gf1_cli_gsync_set (XDR *, gf1_cli_gsync_set*); +extern bool_t xdr_gf1_cli_stats_op (XDR *, gf1_cli_stats_op*); extern bool_t xdr_gf1_cli_probe_req (XDR *, gf1_cli_probe_req*); extern bool_t xdr_gf1_cli_probe_rsp (XDR *, gf1_cli_probe_rsp*); extern bool_t xdr_gf1_cli_deprobe_req (XDR *, gf1_cli_deprobe_req*); @@ -488,15 +514,18 @@ extern bool_t xdr_gf1_cli_fsm_log_req (XDR *, gf1_cli_fsm_log_req*); extern bool_t xdr_gf1_cli_fsm_log_rsp (XDR *, gf1_cli_fsm_log_rsp*); extern bool_t xdr_gf1_cli_gsync_set_req (XDR *, gf1_cli_gsync_set_req*); extern bool_t xdr_gf1_cli_gsync_set_rsp (XDR *, gf1_cli_gsync_set_rsp*); +extern bool_t xdr_gf1_cli_stats_volume_req (XDR *, gf1_cli_stats_volume_req*); +extern bool_t xdr_gf1_cli_stats_volume_rsp (XDR *, gf1_cli_stats_volume_rsp*); #else /* K&R C */ extern bool_t xdr_gf1_cluster_type (); extern bool_t xdr_gf1_cli_replace_op (); -extern bool_t xdr_gf1_cli_gsync_set (); extern bool_t xdr_gf1_cli_friends_list (); extern bool_t xdr_gf1_cli_get_volume (); extern bool_t xdr_gf1_cli_sync_volume (); extern bool_t xdr_gf1_cli_op_flags (); +extern bool_t xdr_gf1_cli_gsync_set (); +extern bool_t xdr_gf1_cli_stats_op (); extern bool_t xdr_gf1_cli_probe_req (); extern bool_t xdr_gf1_cli_probe_rsp (); extern bool_t xdr_gf1_cli_deprobe_req (); @@ -540,10 +569,13 @@ extern bool_t xdr_gf1_cli_fsm_log_req (); extern bool_t xdr_gf1_cli_fsm_log_rsp (); extern bool_t xdr_gf1_cli_gsync_set_req (); extern bool_t xdr_gf1_cli_gsync_set_rsp (); +extern bool_t xdr_gf1_cli_stats_volume_req (); +extern bool_t xdr_gf1_cli_stats_volume_rsp (); + #endif /* K&R C */ #ifdef __cplusplus } #endif -#endif /* !_CLI1_H_RPCGEN */ +#endif /* !_CLI1-XDR_H_RPCGEN */ |