Kim Schulz | 8372aa5 | 2015-03-25 10:39:40 +0100 | [diff] [blame] | 1 | /******************************************************************************* |
| 2 | * L2CAP Socket Interface |
| 3 | *******************************************************************************/ |
| 4 | |
| 5 | #ifndef BTIF_SOCK_L2CAP_H |
| 6 | #define BTIF_SOCK_L2CAP_H |
| 7 | |
Marie Janssen | 49a8670 | 2015-07-08 11:48:57 -0700 | [diff] [blame] | 8 | #include <hardware/bluetooth.h> |
Kim Schulz | 8372aa5 | 2015-03-25 10:39:40 +0100 | [diff] [blame] | 9 | |
| 10 | #define L2CAP_MASK_FIXED_CHANNEL 0x10000 |
| 11 | |
Kim Schulz | 8372aa5 | 2015-03-25 10:39:40 +0100 | [diff] [blame] | 12 | bt_status_t btsock_l2cap_init(int handle); |
| 13 | bt_status_t btsock_l2cap_cleanup(); |
| 14 | bt_status_t btsock_l2cap_listen(const char* name, int channel, |
| 15 | int* sock_fd, int flags); |
| 16 | bt_status_t btsock_l2cap_connect(const bt_bdaddr_t *bd_addr, |
| 17 | int channel, int* sock_fd, int flags); |
| 18 | void btsock_l2cap_signaled(int fd, int flags, uint32_t user_id); |
| 19 | void on_l2cap_psm_assigned(int id, int psm); |
| 20 | |
| 21 | #endif |
| 22 | |