summaryrefslogtreecommitdiffstats
path: root/xlators/protocol/server
diff options
context:
space:
mode:
authorJeff Darcy <jdarcy@fb.com>2017-06-29 06:50:56 -0700
committerNiels de Vos <ndevos@redhat.com>2017-06-30 10:31:02 +0000
commit0be8e038d9bf90be94f3e3a7d6ea5bee88da9ecb (patch)
tree2f23f3b205a9bdd386488cc00a3d4b1f23b4a076 /xlators/protocol/server
parent50d72373fadf1174918e754e31bae3806aa4c214 (diff)
multiple: fix struct/typedef inconsistencies
The most common pattern, both in our code and elsewhere, is this: struct _xyz { ... }; typedef struct _xyz xyz_t; These exceptions - especially call_frame/call_stack - have been slowing down code navigation for years. By converging on a single pattern, navigating from xyz_t in code to the actual definition of struct _xyz (i.e. without having to visit the typedef first) might even be automatable. Change-Id: I0e5dd1f51f98e000173c62ef4ddc5b21d9ec44ed Signed-off-by: Jeff Darcy <jdarcy@fb.com> Reviewed-on: https://review.gluster.org/17650 Smoke: Gluster Build System <jenkins@build.gluster.org> Tested-by: Jeff Darcy <jeff@pl.atyp.us> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Amar Tumballi <amarts@redhat.com> Reviewed-by: Niels de Vos <ndevos@redhat.com>
Diffstat (limited to 'xlators/protocol/server')
-rw-r--r--xlators/protocol/server/src/server-helpers.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/xlators/protocol/server/src/server-helpers.h b/xlators/protocol/server/src/server-helpers.h
index 02e092b9956..1f47bc9dff1 100644
--- a/xlators/protocol/server/src/server-helpers.h
+++ b/xlators/protocol/server/src/server-helpers.h
@@ -41,11 +41,11 @@ call_frame_t *
get_frame_from_request (rpcsvc_request_t *req);
int
-server_connection_cleanup (xlator_t *this, struct _client_t *client,
+server_connection_cleanup (xlator_t *this, struct _client *client,
int32_t flags);
gf_boolean_t
-server_cancel_grace_timer (xlator_t *this, struct _client_t *client);
+server_cancel_grace_timer (xlator_t *this, struct _client *client);
int
server_build_config (xlator_t *this, server_conf_t *conf);
@@ -55,7 +55,7 @@ int serialize_rsp_direntp (gf_dirent_t *entries, gfs3_readdirp_rsp *rsp);
int readdirp_rsp_cleanup (gfs3_readdirp_rsp *rsp);
int readdir_rsp_cleanup (gfs3_readdir_rsp *rsp);
int auth_set_username_passwd (dict_t *input_params, dict_t *config_params,
- struct _client_t *client);
+ struct _client *client);
server_ctx_t *server_ctx_get (client_t *client, xlator_t *xlator);
int server_process_event_upcall (xlator_t *this, void *data);