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>
This commit is contained in:
committed by
Paul Gortmaker
parent
2060a57744
commit
706767da1b
@@ -145,16 +145,7 @@ extern struct tipc_bearer tipc_bearers[];
|
||||
/*
|
||||
* TIPC routines available to supported media types
|
||||
*/
|
||||
int tipc_register_media(u32 media_type,
|
||||
char *media_name, int (*enable)(struct tipc_bearer *),
|
||||
void (*disable)(struct tipc_bearer *),
|
||||
int (*send_msg)(struct sk_buff *,
|
||||
struct tipc_bearer *, struct tipc_media_addr *),
|
||||
char *(*addr2str)(struct tipc_media_addr *a,
|
||||
char *str_buf, int str_size),
|
||||
struct tipc_media_addr *bcast_addr, const u32 bearer_priority,
|
||||
const u32 link_tolerance, /* [ms] */
|
||||
const u32 send_window_limit);
|
||||
int tipc_register_media(struct media *m_ptr);
|
||||
|
||||
void tipc_recv_msg(struct sk_buff *buf, struct tipc_bearer *tb_ptr);
|
||||
|
||||
|
Reference in New Issue
Block a user