aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth
diff options
context:
space:
mode:
authorGustavo F. Padovan <padovan@profusion.mobi>2011-04-27 17:26:32 -0400
committerGustavo F. Padovan <padovan@profusion.mobi>2011-05-05 12:47:45 -0400
commit23691d75cdc69c3b285211b4d77746aa20a17d18 (patch)
tree32aa0e3e59dce0226242659a83698bafd6c98fc5 /include/net/bluetooth
parent73b2ec18532f45e9028ce4c7bc8d7f8818eabd2a (diff)
Bluetooth: Remove l2cap_sk_list
A new list was added to replace the socket based one. This new list doesn't depent on sock and then fits better inside l2cap_core.c code. It also rename l2cap_chan_alloc() to l2cap_chan_create() and l2cap_chan_free() to l2cap_chan_destroy) Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'include/net/bluetooth')
-rw-r--r--include/net/bluetooth/l2cap.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/net/bluetooth/l2cap.h b/include/net/bluetooth/l2cap.h
index fb3f90eaaaa4..d09c9b1118e3 100644
--- a/include/net/bluetooth/l2cap.h
+++ b/include/net/bluetooth/l2cap.h
@@ -350,6 +350,7 @@ struct l2cap_chan {
350 struct list_head srej_l; 350 struct list_head srej_l;
351 351
352 struct list_head list; 352 struct list_head list;
353 struct list_head global_l;
353}; 354};
354 355
355struct l2cap_conn { 356struct l2cap_conn {
@@ -441,7 +442,6 @@ static inline int l2cap_tx_window_full(struct l2cap_chan *ch)
441#define __is_sar_start(ctrl) (((ctrl) & L2CAP_CTRL_SAR) == L2CAP_SDU_START) 442#define __is_sar_start(ctrl) (((ctrl) & L2CAP_CTRL_SAR) == L2CAP_SDU_START)
442 443
443extern int disable_ertm; 444extern int disable_ertm;
444extern struct bt_sock_list l2cap_sk_list;
445 445
446int l2cap_init_sockets(void); 446int l2cap_init_sockets(void);
447void l2cap_cleanup_sockets(void); 447void l2cap_cleanup_sockets(void);
@@ -469,9 +469,9 @@ void l2cap_sock_init(struct sock *sk, struct sock *parent);
469struct sock *l2cap_sock_alloc(struct net *net, struct socket *sock, 469struct sock *l2cap_sock_alloc(struct net *net, struct socket *sock,
470 int proto, gfp_t prio); 470 int proto, gfp_t prio);
471void l2cap_send_disconn_req(struct l2cap_conn *conn, struct l2cap_chan *chan, int err); 471void l2cap_send_disconn_req(struct l2cap_conn *conn, struct l2cap_chan *chan, int err);
472struct l2cap_chan *l2cap_chan_alloc(struct sock *sk); 472struct l2cap_chan *l2cap_chan_create(struct sock *sk);
473void l2cap_chan_del(struct l2cap_chan *chan, int err); 473void l2cap_chan_del(struct l2cap_chan *chan, int err);
474void l2cap_chan_free(struct l2cap_chan *chan); 474void l2cap_chan_destroy(struct l2cap_chan *chan);
475int l2cap_chan_connect(struct l2cap_chan *chan); 475int l2cap_chan_connect(struct l2cap_chan *chan);
476 476
477#endif /* __L2CAP_H */ 477#endif /* __L2CAP_H */