diff options
| author | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-02-03 17:50:35 -0500 |
|---|---|---|
| committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-02-07 22:43:30 -0500 |
| commit | bb58f747e519aba07a6f05a78d58cf8a0788e2d5 (patch) | |
| tree | d65743650d5f1a164bbb709a8aa7df4b13250623 /include/net/bluetooth | |
| parent | 0a708f8fc46fde3be2116b8d79f7469a24097c90 (diff) | |
Bluetooth: Initial work for L2CAP split.
This patch tries to do the minimal to move l2cap_sock_create() and its
dependencies to l2cap_sock.c. It create a API to initialize and cleanup
the L2CAP sockets from l2cap_core.c through l2cap_init_sockets() and
l2cap_cleanup_sockets().
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'include/net/bluetooth')
| -rw-r--r-- | include/net/bluetooth/l2cap.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/net/bluetooth/l2cap.h b/include/net/bluetooth/l2cap.h index 7f88a87d7a46..fce5274a4f7b 100644 --- a/include/net/bluetooth/l2cap.h +++ b/include/net/bluetooth/l2cap.h | |||
| @@ -424,6 +424,21 @@ static inline int l2cap_tx_window_full(struct sock *sk) | |||
| 424 | #define __is_sframe(ctrl) ((ctrl) & L2CAP_CTRL_FRAME_TYPE) | 424 | #define __is_sframe(ctrl) ((ctrl) & L2CAP_CTRL_FRAME_TYPE) |
| 425 | #define __is_sar_start(ctrl) (((ctrl) & L2CAP_CTRL_SAR) == L2CAP_SDU_START) | 425 | #define __is_sar_start(ctrl) (((ctrl) & L2CAP_CTRL_SAR) == L2CAP_SDU_START) |
| 426 | 426 | ||
| 427 | extern int disable_ertm; | ||
| 428 | extern const struct proto_ops l2cap_sock_ops; | ||
| 429 | extern struct bt_sock_list l2cap_sk_list; | ||
| 430 | |||
| 431 | int l2cap_init_sockets(void); | ||
| 432 | void l2cap_cleanup_sockets(void); | ||
| 433 | |||
| 434 | void l2cap_sock_set_timer(struct sock *sk, long timeout); | ||
| 435 | void __l2cap_sock_close(struct sock *sk, int reason); | ||
| 436 | void l2cap_sock_kill(struct sock *sk); | ||
| 437 | void l2cap_sock_init(struct sock *sk, struct sock *parent); | ||
| 438 | struct sock *l2cap_sock_alloc(struct net *net, struct socket *sock, | ||
| 439 | int proto, gfp_t prio); | ||
| 440 | |||
| 441 | |||
| 427 | void l2cap_load(void); | 442 | void l2cap_load(void); |
| 428 | 443 | ||
| 429 | #endif /* __L2CAP_H */ | 444 | #endif /* __L2CAP_H */ |
