summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Krasnyansky <maxk@qualcomm.com>2002-03-31 05:14:51 +0000
committerMax Krasnyansky <maxk@qualcomm.com>2002-03-31 05:14:51 +0000
commitdac18f34e1080e84d779496232a838c5bc570ddd (patch)
tree13ad34716b9d5693c05d0690d164f9078980ab19
parenta8d4b5143b9fc3ee47a5f59180d8a92c5f742115 (diff)
Added BDADDR_LOCAL
-rw-r--r--include/bluetooth.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/bluetooth.h b/include/bluetooth.h
index 8d1c7c51..8026832b 100644
--- a/include/bluetooth.h
+++ b/include/bluetooth.h
@@ -86,7 +86,8 @@ typedef struct {
uint8_t b[6];
} __attribute__((packed)) bdaddr_t;
-#define BDADDR_ANY ((bdaddr_t *)"\000\000\000\000\000")
+#define BDADDR_ANY (&(bdaddr_t) {{0, 0, 0, 0, 0, 0}})
+#define BDADDR_LOCAL (&(bdaddr_t) {{0, 0, 0, 0xff, 0xff, 0xff}})
/* Copy, swap, convert BD Address */
static inline int bacmp(bdaddr_t *ba1, bdaddr_t *ba2)