summaryrefslogtreecommitdiffstats
path: root/xlators/protocol/legacy/server/src/server-protocol.h
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2010-06-29 03:39:16 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-07-01 03:31:47 -0700
commitc46f8452d75e2f1b4ab77306177f39bdbb4b232c (patch)
tree6c583bc3d79fdaab83aac6933c5848583ff1fe66 /xlators/protocol/legacy/server/src/server-protocol.h
parent0da2a6d08cc8fc2315742d010c8a8cab38ef75bb (diff)
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 <amar@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 'xlators/protocol/legacy/server/src/server-protocol.h')
-rw-r--r--xlators/protocol/legacy/server/src/server-protocol.h16
1 files changed, 4 insertions, 12 deletions
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;