summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSrinu Jella <sjella@codeaurora.org>2013-09-12 17:59:45 +0530
committerLinux Build Service Account <lnxbuild@localhost>2015-10-06 03:30:34 -0600
commit27026c26526e167fff3b0fbc26dd9ba8cb25fb15 (patch)
treebd7d7eb529d45cf29e097b5b62e33b7d161ca56d
parenta7ca5eb851e762ad158a66f16334967dd67fda00 (diff)
downloadhardware_libhardware-27026c26526e167fff3b0fbc26dd9ba8cb25fb15.zip
hardware_libhardware-27026c26526e167fff3b0fbc26dd9ba8cb25fb15.tar.gz
hardware_libhardware-27026c26526e167fff3b0fbc26dd9ba8cb25fb15.tar.bz2
Bluetooth: Add Get/Set socket option prototypes (1/4)
Get/set socket option function prototypes added CRs-Fixed: 557180 Change-Id: Iff7ff159c8cf765416b00ac504fe345492d05088
-rw-r--r--include/hardware/bt_sock.h19
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