xref: /haiku/src/add-ons/kernel/network/protocols/l2cap/l2cap_signal.h (revision bb83316a5811a550c4f850d07fa8e328e7ac0a94)
1b9b8d43cSOliver Ruiz Dorantes /*
2b9b8d43cSOliver Ruiz Dorantes  * Copyright 2008 Oliver Ruiz Dorantes, oliver.ruiz.dorantes_at_gmail.com
3b9b8d43cSOliver Ruiz Dorantes  * All rights reserved. Distributed under the terms of the MIT License.
4b9b8d43cSOliver Ruiz Dorantes  */
5b9b8d43cSOliver Ruiz Dorantes #ifndef L2CAP_SIGNAL_H
6b9b8d43cSOliver Ruiz Dorantes #define L2CAP_SIGNAL_H
7b9b8d43cSOliver Ruiz Dorantes 
8*bb83316aSAugustin Cavalier #include <l2cap.h>
9b9b8d43cSOliver Ruiz Dorantes 
10b9b8d43cSOliver Ruiz Dorantes 
11*bb83316aSAugustin Cavalier status_t l2cap_handle_signaling_command(struct HciConnection* connection, net_buffer* buffer);
12b9b8d43cSOliver Ruiz Dorantes 
13*bb83316aSAugustin Cavalier 
14*bb83316aSAugustin Cavalier status_t send_l2cap_command(HciConnection* conn, uint8 code, uint8 ident, net_buffer* command);
15*bb83316aSAugustin Cavalier 
16*bb83316aSAugustin Cavalier status_t send_l2cap_command_reject(HciConnection* conn, uint8 ident,
17*bb83316aSAugustin Cavalier 	uint16 reason, uint16 mtu, uint16 scid, uint16 dcid);
18*bb83316aSAugustin Cavalier status_t send_l2cap_configuration_req(HciConnection* conn, uint8 ident, uint16 dcid, uint16 flags,
19*bb83316aSAugustin Cavalier 	uint16* mtu, uint16* flush_timeout, l2cap_qos* flow);
20*bb83316aSAugustin Cavalier status_t send_l2cap_connection_req(HciConnection* conn, uint8 ident, uint16 psm, uint16 scid);
21*bb83316aSAugustin Cavalier status_t send_l2cap_connection_rsp(HciConnection* conn, uint8 ident,
22*bb83316aSAugustin Cavalier 	uint16 dcid, uint16 scid, uint16 result, uint16 status);
23*bb83316aSAugustin Cavalier status_t send_l2cap_configuration_rsp(HciConnection* conn, uint8 ident,
24*bb83316aSAugustin Cavalier 	uint16 scid, uint16 flags, uint16 result, net_buffer *opt);
25*bb83316aSAugustin Cavalier status_t send_l2cap_disconnection_req(HciConnection* conn, uint8 ident, uint16 dcid, uint16 scid);
26*bb83316aSAugustin Cavalier status_t send_l2cap_disconnection_rsp(HciConnection* conn, uint8 ident, uint16 dcid, uint16 scid);
27*bb83316aSAugustin Cavalier 
28*bb83316aSAugustin Cavalier 
29*bb83316aSAugustin Cavalier #endif /* L2CAP_SIGNAL_H */
30