From c46f8452d75e2f1b4ab77306177f39bdbb4b232c Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Tue, 29 Jun 2010 03:39:16 +0000 Subject: backward compatibility of protocol * made most of the 'legacy' server and transport functions as 'static' as they were getting cross linked with newer functions. * changed the name of few functions with prefix 'gf_' Signed-off-by: Amar Tumballi Signed-off-by: Anand V. Avati 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 --- xlators/protocol/legacy/server/src/server-protocol.h | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'xlators/protocol/legacy/server/src/server-protocol.h') diff --git a/xlators/protocol/legacy/server/src/server-protocol.h b/xlators/protocol/legacy/server/src/server-protocol.h index 0c210005..56d23fdb 100644 --- a/xlators/protocol/legacy/server/src/server-protocol.h +++ b/xlators/protocol/legacy/server/src/server-protocol.h @@ -77,21 +77,13 @@ typedef struct _server_connection server_connection_t; server_connection_t * -server_connection_get (xlator_t *this, const char *id); +gf_server_connection_get (xlator_t *this, const char *id); void -server_connection_put (xlator_t *this, server_connection_t *conn); +gf_server_connection_put (xlator_t *this, server_connection_t *conn); int -server_connection_destroy (xlator_t *this, server_connection_t *conn); - -int -server_connection_cleanup (xlator_t *this, server_connection_t *conn); - -int -server_nop_cbk (call_frame_t *frame, void *cookie, - xlator_t *this, int32_t op_ret, int32_t op_errno); - +gf_server_connection_cleanup (xlator_t *this, server_connection_t *conn); struct _volfile_ctx { struct _volfile_ctx *next; @@ -149,7 +141,7 @@ typedef struct { typedef int (*server_resume_fn_t) (call_frame_t *frame, xlator_t *bound_xl); int -resolve_and_resume (call_frame_t *frame, server_resume_fn_t fn); +gf_resolve_and_resume (call_frame_t *frame, server_resume_fn_t fn); struct _server_state { transport_t *trans; -- cgit