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/transport.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/transport.h')
-rw-r--r-- | include/net/9p/transport.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/include/net/9p/transport.h b/include/net/9p/transport.h index f9f362e934c9..d2209ae9d18b 100644 --- a/include/net/9p/transport.h +++ b/include/net/9p/transport.h | |||
@@ -4,7 +4,7 @@ | |||
4 | * Transport Definition | 4 | * Transport Definition |
5 | * | 5 | * |
6 | * Copyright (C) 2005 by Latchesar Ionkov <lucho@ionkov.net> | 6 | * Copyright (C) 2005 by Latchesar Ionkov <lucho@ionkov.net> |
7 | * Copyright (C) 2004 by Eric Van Hensbergen <ericvh@gmail.com> | 7 | * Copyright (C) 2004-2008 by Eric Van Hensbergen <ericvh@gmail.com> |
8 | * | 8 | * |
9 | * 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 |
10 | * it under the terms of the GNU General Public License version 2 | 10 | * it under the terms of the GNU General Public License version 2 |
@@ -34,13 +34,12 @@ enum p9_trans_status { | |||
34 | 34 | ||
35 | struct p9_trans { | 35 | struct p9_trans { |
36 | enum p9_trans_status status; | 36 | enum p9_trans_status status; |
37 | int msize; | ||
38 | unsigned char extended; | ||
37 | void *priv; | 39 | void *priv; |
38 | int (*write) (struct p9_trans *, void *, int); | ||
39 | int (*read) (struct p9_trans *, void *, int); | ||
40 | void (*close) (struct p9_trans *); | 40 | void (*close) (struct p9_trans *); |
41 | unsigned int (*poll)(struct p9_trans *, struct poll_table_struct *); | ||
42 | int (*rpc) (struct p9_trans *t, struct p9_fcall *tc, | 41 | int (*rpc) (struct p9_trans *t, struct p9_fcall *tc, |
43 | struct p9_fcall **rc, int msize, int dotu); | 42 | struct p9_fcall **rc); |
44 | }; | 43 | }; |
45 | 44 | ||
46 | struct p9_trans_module { | 45 | struct p9_trans_module { |
@@ -48,7 +47,7 @@ struct p9_trans_module { | |||
48 | char *name; /* name of transport */ | 47 | char *name; /* name of transport */ |
49 | int maxsize; /* max message size of transport */ | 48 | int maxsize; /* max message size of transport */ |
50 | int def; /* this transport should be default */ | 49 | int def; /* this transport should be default */ |
51 | struct p9_trans * (*create)(const char *devname, char *options); | 50 | struct p9_trans * (*create)(const char *, char *, int, unsigned char); |
52 | }; | 51 | }; |
53 | 52 | ||
54 | void v9fs_register_trans(struct p9_trans_module *m); | 53 | void v9fs_register_trans(struct p9_trans_module *m); |