From dac18f34e1080e84d779496232a838c5bc570ddd Mon Sep 17 00:00:00 2001 From: Max Krasnyansky Date: Sun, 31 Mar 2002 05:14:51 +0000 Subject: Added BDADDR_LOCAL --- include/bluetooth.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/bluetooth.h') 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) -- cgit