diff options
author | Eric Van Hensbergen <ericvh@ericvh-desktop.austin.ibm.com> | 2008-10-13 18:45:25 -0500 |
---|---|---|
committer | Eric Van Hensbergen <ericvh@gmail.com> | 2008-10-17 11:04:41 -0500 |
commit | 8b81ef589ad1483dd977ef47fe00d4ce4d91a0ab (patch) | |
tree | 380a19ca0f55fefc60c4a45771f5273c80539c07 /include/net/9p/client.h | |
parent | 992b3f1dbeec401e19a80bdb8c81e5df5381f4c5 (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.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/include/net/9p/client.h b/include/net/9p/client.h index c936dd14de4..c35fb548e7c 100644 --- a/include/net/9p/client.h +++ b/include/net/9p/client.h @@ -27,6 +27,22 @@ #define NET_9P_CLIENT_H /** + * enum p9_trans_status - different states of underlying transports + * @Connected: transport is connected and healthy + * @Disconnected: transport has been disconnected + * @Hung: transport is connected by wedged + * + * This enumeration details the various states a transport + * instatiation can be in. + */ + +enum p9_trans_status { + Connected, + Disconnected, + Hung, +}; + +/** * struct p9_client - per client instance state * @lock: protect @fidlist * @msize: maximum data size negotiated by protocol @@ -48,7 +64,8 @@ struct p9_client { int msize; unsigned char dotu; struct p9_trans_module *trans_mod; - struct p9_trans *trans; + enum p9_trans_status status; + void *trans; struct p9_conn *conn; struct p9_idpool *fidpool; |