* fix #6373 by switching the BD... macros to take the address of corresponding

constants, which had to be defined in several places in order to be available
  in the kernel addons, network protocols and the server/kit.
* enable -Werror for all servers

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38213 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Oliver Tappe
2010-08-17 21:46:32 +00:00
parent 7640bbb6cd
commit e0ef64750f
8 changed files with 43 additions and 23 deletions
+10 -3
View File
@@ -24,10 +24,17 @@ typedef struct {
uint8 b[6];
} __attribute__((packed)) bdaddr_t;
namespace BPrivate {
#define BDADDR_NULL (&(bdaddr_t) {{0, 0, 0, 0, 0, 0}})
#define BDADDR_LOCAL (&(bdaddr_t) {{0, 0, 0, 0xff, 0xff, 0xff}})
#define BDADDR_BROADCAST (&(bdaddr_t) {{0xff, 0xff, 0xff, 0xff, 0xff, 0xff}})
extern const bdaddr_t kBdNullAddress;
extern const bdaddr_t kBdLocalAddress;
extern const bdaddr_t kBdBroadcastAddress;
}
#define BDADDR_NULL (&BPrivate::kBdNullAddress)
#define BDADDR_LOCAL (&BPrivate::kBdLocalAddress)
#define BDADDR_BROADCAST (&BPrivate::kBdBroadcastAddress)
#define BDADDR_ANY BDADDR_BROADCAST
+1 -1
View File
@@ -138,7 +138,7 @@ struct bluetooth_core_data_module_info {
status_t (*PostEvent)(bluetooth_device* ndev, void* event,
size_t size);
struct HciConnection* (*AddConnection)(uint16 handle, int type,
bdaddr_t* dst, hci_id hid);
const bdaddr_t* dst, hci_id hid);
// status_t (*RemoveConnection)(bdaddr_t destination, hci_id hid);
status_t (*RemoveConnection)(uint16 handle, hci_id hid);