diff options
author | Per Liden <per.liden@ericsson.com> | 2006-01-17 18:38:21 -0500 |
---|---|---|
committer | Per Liden <per.liden@ericsson.com> | 2006-01-17 18:45:16 -0500 |
commit | 4323add67792ced172d0d93b8b2e6187023115f1 (patch) | |
tree | 13224010f6f18029fb710a1e0b48392aea90b486 /net/tipc/bearer.h | |
parent | 1e63e681e06d438fdc542d40924a4f155d461bbd (diff) |
[TIPC] Avoid polluting the global namespace
This patch adds a tipc_ prefix to all externally visible symbols.
Signed-off-by: Per Liden <per.liden@ericsson.com>
Diffstat (limited to 'net/tipc/bearer.h')
-rw-r--r-- | net/tipc/bearer.h | 38 |
1 files changed, 18 insertions, 20 deletions
diff --git a/net/tipc/bearer.h b/net/tipc/bearer.h index 0c40cc2b43cc..c4e7c1c3655b 100644 --- a/net/tipc/bearer.h +++ b/net/tipc/bearer.h | |||
@@ -114,26 +114,24 @@ struct bearer_name { | |||
114 | 114 | ||
115 | struct link; | 115 | struct link; |
116 | 116 | ||
117 | extern struct bearer *bearers; | 117 | extern struct bearer *tipc_bearers; |
118 | 118 | ||
119 | void media_addr_printf(struct print_buf *pb, struct tipc_media_addr *a); | 119 | void tipc_media_addr_printf(struct print_buf *pb, struct tipc_media_addr *a); |
120 | struct sk_buff *media_get_names(void); | 120 | struct sk_buff *tipc_media_get_names(void); |
121 | 121 | ||
122 | struct sk_buff *bearer_get_names(void); | 122 | struct sk_buff *tipc_bearer_get_names(void); |
123 | void bearer_add_dest(struct bearer *b_ptr, u32 dest); | 123 | void tipc_bearer_add_dest(struct bearer *b_ptr, u32 dest); |
124 | void bearer_remove_dest(struct bearer *b_ptr, u32 dest); | 124 | void tipc_bearer_remove_dest(struct bearer *b_ptr, u32 dest); |
125 | void bearer_schedule(struct bearer *b_ptr, struct link *l_ptr); | 125 | void tipc_bearer_schedule(struct bearer *b_ptr, struct link *l_ptr); |
126 | struct bearer *bearer_find_interface(const char *if_name); | 126 | struct bearer *tipc_bearer_find_interface(const char *if_name); |
127 | int bearer_resolve_congestion(struct bearer *b_ptr, struct link *l_ptr); | 127 | int tipc_bearer_resolve_congestion(struct bearer *b_ptr, struct link *l_ptr); |
128 | int bearer_init(void); | 128 | int tipc_bearer_init(void); |
129 | void bearer_stop(void); | 129 | void tipc_bearer_stop(void); |
130 | int bearer_broadcast(struct sk_buff *buf, struct tipc_bearer *b_ptr, | 130 | void tipc_bearer_lock_push(struct bearer *b_ptr); |
131 | struct tipc_media_addr *dest); | ||
132 | void bearer_lock_push(struct bearer *b_ptr); | ||
133 | 131 | ||
134 | 132 | ||
135 | /** | 133 | /** |
136 | * bearer_send- sends buffer to destination over bearer | 134 | * tipc_bearer_send- sends buffer to destination over bearer |
137 | * | 135 | * |
138 | * Returns true (1) if successful, or false (0) if unable to send | 136 | * Returns true (1) if successful, or false (0) if unable to send |
139 | * | 137 | * |
@@ -150,23 +148,23 @@ void bearer_lock_push(struct bearer *b_ptr); | |||
150 | * and let TIPC's link code deal with the undelivered message. | 148 | * and let TIPC's link code deal with the undelivered message. |
151 | */ | 149 | */ |
152 | 150 | ||
153 | static inline int bearer_send(struct bearer *b_ptr, struct sk_buff *buf, | 151 | static inline int tipc_bearer_send(struct bearer *b_ptr, struct sk_buff *buf, |
154 | struct tipc_media_addr *dest) | 152 | struct tipc_media_addr *dest) |
155 | { | 153 | { |
156 | return !b_ptr->media->send_msg(buf, &b_ptr->publ, dest); | 154 | return !b_ptr->media->send_msg(buf, &b_ptr->publ, dest); |
157 | } | 155 | } |
158 | 156 | ||
159 | /** | 157 | /** |
160 | * bearer_congested - determines if bearer is currently congested | 158 | * tipc_bearer_congested - determines if bearer is currently congested |
161 | */ | 159 | */ |
162 | 160 | ||
163 | static inline int bearer_congested(struct bearer *b_ptr, struct link *l_ptr) | 161 | static inline int tipc_bearer_congested(struct bearer *b_ptr, struct link *l_ptr) |
164 | { | 162 | { |
165 | if (unlikely(b_ptr->publ.blocked)) | 163 | if (unlikely(b_ptr->publ.blocked)) |
166 | return 1; | 164 | return 1; |
167 | if (likely(list_empty(&b_ptr->cong_links))) | 165 | if (likely(list_empty(&b_ptr->cong_links))) |
168 | return 0; | 166 | return 0; |
169 | return !bearer_resolve_congestion(b_ptr, l_ptr); | 167 | return !tipc_bearer_resolve_congestion(b_ptr, l_ptr); |
170 | } | 168 | } |
171 | 169 | ||
172 | #endif | 170 | #endif |