diff options
-rw-r--r-- | include/hardware/bt_sock.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/hardware/bt_sock.h b/include/hardware/bt_sock.h index 5d206d7..9dd83bb 100644 --- a/include/hardware/bt_sock.h +++ b/include/hardware/bt_sock.h @@ -30,6 +30,12 @@ typedef enum { BTSOCK_L2CAP = 3 } btsock_type_t; +typedef enum { + BTSOCK_OPT_GET_MODEM_BITS = 1, + BTSOCK_OPT_SET_MODEM_BITS = 2, + BTSOCK_OPT_CLR_MODEM_BITS = 3, +} btsock_option_type_t; + /** Represents the standard BT SOCKET interface. */ typedef struct { short size; @@ -66,6 +72,19 @@ typedef struct { */ bt_status_t (*connect)(const bt_bdaddr_t *bd_addr, btsock_type_t type, const uint8_t* uuid, int channel, int* sock_fd, int flags); + + /* + * get socket option of rfcomm channel socket. + */ + bt_status_t (*get_sock_opt)(btsock_type_t type, int channel, btsock_option_type_t option_name, + void *option_value, int *option_len); + /* + + * set socket option of rfcomm channel socket. + */ + bt_status_t (*set_sock_opt)(btsock_type_t type, int channel, btsock_option_type_t option_name, + void *option_value, int option_len); + } btsock_interface_t; __END_DECLS |