aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorGustavo F. Padovan <padovan@profusion.mobi>2011-05-02 17:25:01 -0400
committerGustavo F. Padovan <padovan@profusion.mobi>2011-06-08 15:58:16 -0400
commitab07801d28985090ac38047b5a4d8952a7e1689f (patch)
tree9ae945f55141b32b779c6a5969806725b39c09c3 /include/net
parent715ec005cd10c5d53109ffe513e4d403644e3e48 (diff)
Bluetooth: create channel timer to replace sk_timer
The new timer does not belong to struct sock, tought it still touch some sock things, but this will be sorted out soon. Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/bluetooth/l2cap.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/net/bluetooth/l2cap.h b/include/net/bluetooth/l2cap.h
index 094a7ac16ffe..efb1fc4f3a03 100644
--- a/include/net/bluetooth/l2cap.h
+++ b/include/net/bluetooth/l2cap.h
@@ -340,6 +340,7 @@ struct l2cap_chan {
340 __u8 remote_max_tx; 340 __u8 remote_max_tx;
341 __u16 remote_mps; 341 __u16 remote_mps;
342 342
343 struct timer_list chan_timer;
343 struct timer_list retrans_timer; 344 struct timer_list retrans_timer;
344 struct timer_list monitor_timer; 345 struct timer_list monitor_timer;
345 struct timer_list ack_timer; 346 struct timer_list ack_timer;
@@ -457,12 +458,12 @@ int __l2cap_wait_ack(struct sock *sk);
457int l2cap_add_psm(struct l2cap_chan *chan, bdaddr_t *src, __le16 psm); 458int l2cap_add_psm(struct l2cap_chan *chan, bdaddr_t *src, __le16 psm);
458int l2cap_add_scid(struct l2cap_chan *chan, __u16 scid); 459int l2cap_add_scid(struct l2cap_chan *chan, __u16 scid);
459 460
460void l2cap_sock_set_timer(struct sock *sk, long timeout);
461void l2cap_sock_clear_timer(struct sock *sk);
462void l2cap_sock_kill(struct sock *sk); 461void l2cap_sock_kill(struct sock *sk);
463void l2cap_sock_init(struct sock *sk, struct sock *parent); 462void l2cap_sock_init(struct sock *sk, struct sock *parent);
464struct sock *l2cap_sock_alloc(struct net *net, struct socket *sock, 463struct sock *l2cap_sock_alloc(struct net *net, struct socket *sock,
465 int proto, gfp_t prio); 464 int proto, gfp_t prio);
465
466void l2cap_chan_clear_timer(struct l2cap_chan *chan);
466struct l2cap_chan *l2cap_chan_create(struct sock *sk); 467struct l2cap_chan *l2cap_chan_create(struct sock *sk);
467void __l2cap_chan_close(struct l2cap_chan *chan, int reason); 468void __l2cap_chan_close(struct l2cap_chan *chan, int reason);
468void l2cap_chan_destroy(struct l2cap_chan *chan); 469void l2cap_chan_destroy(struct l2cap_chan *chan);