OSDN Git Service

Add BT_POWER socket option and bt_power structure.
authorJaikumar Ganesh <jaikumar@google.com>
Wed, 10 Nov 2010 03:18:29 +0000 (19:18 -0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 4 Aug 2011 09:33:14 +0000 (17:33 +0800)
Change-Id: I3be96c31ff97290bdb76adaf512843fe7a3b746d

bluez-clean-headers/bluetooth/bluetooth.h

index b0b8f4b..8d74db7 100644 (file)
@@ -23,9 +23,6 @@
 #define AF_BLUETOOTH 31
 #define PF_BLUETOOTH AF_BLUETOOTH
 #endif
-#ifndef SOL_BLUETOOTH
-#define SOL_BLUETOOTH 274
-#endif
 #define BTPROTO_L2CAP 0
 #define BTPROTO_HCI 1
 #define BTPROTO_SCO 2
 #define SOL_L2CAP 6
 #define SOL_SCO 17
 #define SOL_RFCOMM 18
+#ifndef SOL_BLUETOOTH
+#define SOL_BLUETOOTH 274
+#endif
+#define BT_SECURITY 4
+#define BT_SECURITY_SDP 0
+#define BT_SECURITY_LOW 1
+#define BT_SECURITY_MEDIUM 2
+#define BT_SECURITY_HIGH 3
+#define BT_DEFER_SETUP 7
+#define BT_POWER 8
 #if __BYTE_ORDER == __LITTLE_ENDIAN
 #define htobs(d) (d)
 #define htobl(d) (d)
@@ -65,4 +72,7 @@ static inline void bacpy(bdaddr_t *dst, const bdaddr_t *src)
 {
        memcpy(dst, src, sizeof(bdaddr_t));
 }
+struct bt_power {
+       uint8_t force_active;
+};
 #endif