diff options
author | Eric Van Hensbergen <ericvh@opteron.homeip.net> | 2008-02-06 20:25:03 -0500 |
---|---|---|
committer | Eric Van Hensbergen <ericvh@opteron.homeip.net> | 2008-02-06 20:25:03 -0500 |
commit | 8a0dc95fd976a052e5e799ef33e6c8e3141b5dff (patch) | |
tree | 3275903539244acd76c716662c324833aa419377 /include/net/9p/client.h | |
parent | f39335453fe79f4e12e263e7c6387dc9fb86bfff (diff) |
9p: transport API reorganization
This merges the mux.c (including the connection interface) with trans_fd
in preparation for transport API changes. Ultimately, trans_fd will need
to be rewritten to clean it up and simplify the implementation, but this
reorganization is viewed as the first step.
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 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/net/9p/client.h b/include/net/9p/client.h index 9b9221a21392..e52f93d9ac5f 100644 --- a/include/net/9p/client.h +++ b/include/net/9p/client.h | |||
@@ -3,6 +3,7 @@ | |||
3 | * | 3 | * |
4 | * 9P Client Definitions | 4 | * 9P Client Definitions |
5 | * | 5 | * |
6 | * Copyright (C) 2008 by Eric Van Hensbergen <ericvh@gmail.com> | ||
6 | * Copyright (C) 2007 by Latchesar Ionkov <lucho@ionkov.net> | 7 | * Copyright (C) 2007 by Latchesar Ionkov <lucho@ionkov.net> |
7 | * | 8 | * |
8 | * This program is free software; you can redistribute it and/or modify | 9 | * This program is free software; you can redistribute it and/or modify |
@@ -29,6 +30,7 @@ struct p9_client { | |||
29 | spinlock_t lock; /* protect client structure */ | 30 | spinlock_t lock; /* protect client structure */ |
30 | int msize; | 31 | int msize; |
31 | unsigned char dotu; | 32 | unsigned char dotu; |
33 | struct p9_trans_module *trans_mod; | ||
32 | struct p9_trans *trans; | 34 | struct p9_trans *trans; |
33 | struct p9_conn *conn; | 35 | struct p9_conn *conn; |
34 | 36 | ||
@@ -52,8 +54,7 @@ struct p9_fid { | |||
52 | struct list_head dlist; /* list of all fids attached to a dentry */ | 54 | struct list_head dlist; /* list of all fids attached to a dentry */ |
53 | }; | 55 | }; |
54 | 56 | ||
55 | struct p9_client *p9_client_create(struct p9_trans *trans, int msize, | 57 | struct p9_client *p9_client_create(const char *dev_name, char *options); |
56 | int dotu); | ||
57 | void p9_client_destroy(struct p9_client *clnt); | 58 | void p9_client_destroy(struct p9_client *clnt); |
58 | void p9_client_disconnect(struct p9_client *clnt); | 59 | void p9_client_disconnect(struct p9_client *clnt); |
59 | struct p9_fid *p9_client_attach(struct p9_client *clnt, struct p9_fid *afid, | 60 | struct p9_fid *p9_client_attach(struct p9_client *clnt, struct p9_fid *afid, |