summaryrefslogtreecommitdiff
path: root/src/sdpd.h
diff options
context:
space:
mode:
authorBruna Moreira <bruna.moreira@openbossa.org>2010-11-19 09:57:28 -0400
committerJohan Hedberg <johan.hedberg@nokia.com>2010-11-19 17:26:01 +0200
commitf9939cfe3653b7a1bcc2a836e6ac2c45ea39315c (patch)
tree4fcc0b55c9fd3f53479659e8d39cc3cc8c194b01 /src/sdpd.h
parentad0e7f2c5ab9270369301f81eb5da1954eaab82f (diff)
downloadbluez-f9939cfe3653b7a1bcc2a836e6ac2c45ea39315c.tar.gz
Extract flags from advertising data
These flags will be used to decide if GATT service discovery will happen over LE (for single mode devices) or BR/EDR (for dual mode and non-LE devices).
Diffstat (limited to 'src/sdpd.h')
-rw-r--r--src/sdpd.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/sdpd.h b/src/sdpd.h
index 5bab86922..a46ad3cf7 100644
--- a/src/sdpd.h
+++ b/src/sdpd.h
@@ -36,6 +36,7 @@
#define EIR_DATA_LENGTH 240
+#define EIR_FLAGS 0x01 /* flags */
#define EIR_UUID16_SOME 0x02 /* 16-bit UUID, more available */
#define EIR_UUID16_ALL 0x03 /* 16-bit UUID, all listed */
#define EIR_UUID32_SOME 0x04 /* 32-bit UUID, more available */
@@ -47,6 +48,15 @@
#define EIR_TX_POWER 0x0A /* transmit power level */
#define EIR_DEVICE_ID 0x10 /* device ID */
+/* Flags Descriptions */
+#define EIR_LIM_DISC 0x01 /* LE Limited Discoverable Mode */
+#define EIR_GEN_DISC 0x02 /* LE General Discoverable Mode */
+#define EIR_BREDR_UNSUP 0x04 /* BR/EDR Not Supported */
+#define EIR_SIM_CONTROLLER 0x08 /* Simultaneous LE and BR/EDR to Same
+ Device Capable (Controller) */
+#define EIR_SIM_HOST 0x10 /* Simultaneous LE and BR/EDR to Same
+ Device Capable (Host) */
+
typedef struct request {
bdaddr_t device;
bdaddr_t bdaddr;