aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/9p/client.h
diff options
context:
space:
mode:
authorEric Van Hensbergen <ericvh@ericvh-desktop.austin.ibm.com>2008-10-13 19:45:25 -0400
committerEric Van Hensbergen <ericvh@gmail.com>2008-10-17 12:04:41 -0400
commit8b81ef589ad1483dd977ef47fe00d4ce4d91a0ab (patch)
tree380a19ca0f55fefc60c4a45771f5273c80539c07 /include/net/9p/client.h
parent992b3f1dbeec401e19a80bdb8c81e5df5381f4c5 (diff)
9p: consolidate transport structure
Right now there is a transport module structure which provides per-transport type functions and data and a transport structure which contains per-instance public data as well as function pointers to instance specific functions. This patch moves public transport visible instance data to the client structure (which in some cases had duplicate data) and consolidates the functions into the transport module structure. Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'include/net/9p/client.h')
-rw-r--r--include/net/9p/client.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/include/net/9p/client.h b/include/net/9p/client.h
index c936dd14de41..c35fb548e7cf 100644
--- a/include/net/9p/client.h
+++ b/include/net/9p/client.h
@@ -27,6 +27,22 @@
27#define NET_9P_CLIENT_H 27#define NET_9P_CLIENT_H
28 28
29/** 29/**
30 * enum p9_trans_status - different states of underlying transports
31 * @Connected: transport is connected and healthy
32 * @Disconnected: transport has been disconnected
33 * @Hung: transport is connected by wedged
34 *
35 * This enumeration details the various states a transport
36 * instatiation can be in.
37 */
38
39enum p9_trans_status {
40 Connected,
41 Disconnected,
42 Hung,
43};
44
45/**
30 * struct p9_client - per client instance state 46 * struct p9_client - per client instance state
31 * @lock: protect @fidlist 47 * @lock: protect @fidlist
32 * @msize: maximum data size negotiated by protocol 48 * @msize: maximum data size negotiated by protocol
@@ -48,7 +64,8 @@ struct p9_client {
48 int msize; 64 int msize;
49 unsigned char dotu; 65 unsigned char dotu;
50 struct p9_trans_module *trans_mod; 66 struct p9_trans_module *trans_mod;
51 struct p9_trans *trans; 67 enum p9_trans_status status;
68 void *trans;
52 struct p9_conn *conn; 69 struct p9_conn *conn;
53 70
54 struct p9_idpool *fidpool; 71 struct p9_idpool *fidpool;