aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorGustavo Padovan <gustavo.padovan@collabora.co.uk>2013-10-15 18:24:48 -0400
committerMarcel Holtmann <marcel@holtmann.org>2013-10-15 19:42:44 -0400
commit5ec1bbe549d939ff1ef88e2cc22b2c3b95d76401 (patch)
tree877df523bdb1b892675bee1f5aa9bb939a811e5c /include/net
parent8d836d71e2223b8961b21112bb4ce89ef8231682 (diff)
Bluetooth: Add chan->ops->set_shutdown()
We need to remove all direct access of struct sock from L2CAP core. This change is pretty simple and just add a new L2CAP channel callback to do the work in the L2CAP socket side. Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/bluetooth/l2cap.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/bluetooth/l2cap.h b/include/net/bluetooth/l2cap.h
index 9c6be72b6e4e..ae3a99bc31d0 100644
--- a/include/net/bluetooth/l2cap.h
+++ b/include/net/bluetooth/l2cap.h
@@ -555,6 +555,7 @@ struct l2cap_ops {
555 void (*ready) (struct l2cap_chan *chan); 555 void (*ready) (struct l2cap_chan *chan);
556 void (*defer) (struct l2cap_chan *chan); 556 void (*defer) (struct l2cap_chan *chan);
557 void (*resume) (struct l2cap_chan *chan); 557 void (*resume) (struct l2cap_chan *chan);
558 void (*set_shutdown) (struct l2cap_chan *chan);
558 long (*get_sndtimeo) (struct l2cap_chan *chan); 559 long (*get_sndtimeo) (struct l2cap_chan *chan);
559 struct sk_buff *(*alloc_skb) (struct l2cap_chan *chan, 560 struct sk_buff *(*alloc_skb) (struct l2cap_chan *chan,
560 unsigned long len, int nb); 561 unsigned long len, int nb);
@@ -796,6 +797,10 @@ static inline void l2cap_chan_no_defer(struct l2cap_chan *chan)
796{ 797{
797} 798}
798 799
800static inline void l2cap_chan_no_set_shutdown(struct l2cap_chan *chan)
801{
802}
803
799static inline long l2cap_chan_no_get_sndtimeo(struct l2cap_chan *chan) 804static inline long l2cap_chan_no_get_sndtimeo(struct l2cap_chan *chan)
800{ 805{
801 return 0; 806 return 0;