diff options
author | Allan Stephens <allan.stephens@windriver.com> | 2011-10-06 15:28:44 -0400 |
---|---|---|
committer | Paul Gortmaker <paul.gortmaker@windriver.com> | 2011-12-27 11:13:05 -0500 |
commit | 706767da1bd0726d8fbc62e4818cb29193676a74 (patch) | |
tree | f2df46f9850bfb984e64f44ec6c8fca0bf249922 /net/tipc/bearer.h | |
parent | 2060a5774452e35b4a1dc4371abbb5ffd691355f (diff) |
tipc: Register new media using pre-compiled structure
Speeds up the registration of TIPC media types by passing in a structure
containing the required information, rather than by passing in the various
fields describing the media type individually.
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'net/tipc/bearer.h')
-rw-r--r-- | net/tipc/bearer.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/net/tipc/bearer.h b/net/tipc/bearer.h index d696f9e414e3..148ed04493ac 100644 --- a/net/tipc/bearer.h +++ b/net/tipc/bearer.h | |||
@@ -145,16 +145,7 @@ extern struct tipc_bearer tipc_bearers[]; | |||
145 | /* | 145 | /* |
146 | * TIPC routines available to supported media types | 146 | * TIPC routines available to supported media types |
147 | */ | 147 | */ |
148 | int tipc_register_media(u32 media_type, | 148 | int tipc_register_media(struct media *m_ptr); |
149 | char *media_name, int (*enable)(struct tipc_bearer *), | ||
150 | void (*disable)(struct tipc_bearer *), | ||
151 | int (*send_msg)(struct sk_buff *, | ||
152 | struct tipc_bearer *, struct tipc_media_addr *), | ||
153 | char *(*addr2str)(struct tipc_media_addr *a, | ||
154 | char *str_buf, int str_size), | ||
155 | struct tipc_media_addr *bcast_addr, const u32 bearer_priority, | ||
156 | const u32 link_tolerance, /* [ms] */ | ||
157 | const u32 send_window_limit); | ||
158 | 149 | ||
159 | void tipc_recv_msg(struct sk_buff *buf, struct tipc_bearer *tb_ptr); | 150 | void tipc_recv_msg(struct sk_buff *buf, struct tipc_bearer *tb_ptr); |
160 | 151 | ||