diff options
author | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-04-18 17:38:43 -0400 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-05-05 12:47:38 -0400 |
commit | 9e4425fff9e0a0fb6a8c705777ed861f991f8747 (patch) | |
tree | 640771ab2e0c403d38e2a86538e272fbf47d3e6c /include/net/bluetooth | |
parent | 7cbc9bd99542752ff570abca79d0027669a01fb8 (diff) |
Bluetooth: Add l2cap_add_psm() and l2cap_add_scid()
The intention is to get rid of the l2cap_sk_list usage inside
l2cap_core.c. l2cap_sk_list will soon be replaced by a list that does not
depend on socket usage.
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'include/net/bluetooth')
-rw-r--r-- | include/net/bluetooth/l2cap.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/net/bluetooth/l2cap.h b/include/net/bluetooth/l2cap.h index c34b1c126363..f5f3c2cf8a3e 100644 --- a/include/net/bluetooth/l2cap.h +++ b/include/net/bluetooth/l2cap.h | |||
@@ -458,6 +458,10 @@ void l2cap_do_send(struct l2cap_chan *chan, struct sk_buff *skb); | |||
458 | void l2cap_streaming_send(struct l2cap_chan *chan); | 458 | void l2cap_streaming_send(struct l2cap_chan *chan); |
459 | int l2cap_ertm_send(struct l2cap_chan *chan); | 459 | int l2cap_ertm_send(struct l2cap_chan *chan); |
460 | 460 | ||
461 | struct sock *__l2cap_get_sock_by_addr(__le16 psm, bdaddr_t *src); | ||
462 | int l2cap_add_psm(struct l2cap_chan *chan, bdaddr_t *src, __le16 psm); | ||
463 | int l2cap_add_scid(struct l2cap_chan *chan, __u16 scid); | ||
464 | |||
461 | void l2cap_sock_set_timer(struct sock *sk, long timeout); | 465 | void l2cap_sock_set_timer(struct sock *sk, long timeout); |
462 | void l2cap_sock_clear_timer(struct sock *sk); | 466 | void l2cap_sock_clear_timer(struct sock *sk); |
463 | void __l2cap_sock_close(struct sock *sk, int reason); | 467 | void __l2cap_sock_close(struct sock *sk, int reason); |