7044da5546
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22667 a95241bf-73f2-0310-859d-f6bbb57e9c96
53 lines
825 B
C++
53 lines
825 B
C++
/*
|
|
* Copyright 2007 Haiku.
|
|
* Distributed under the terms of the MIT License.
|
|
*
|
|
* Authors:
|
|
* Oliver Ruiz Dorantes, oliver.ruiz.dorantes_at_gmail.com
|
|
*/
|
|
|
|
#ifndef _BDADDR_UTILS_H
|
|
#define _BDADDR_UTILS_H
|
|
|
|
#include <bluetooth/bluetooth.h>
|
|
|
|
namespace Bluetooth {
|
|
|
|
class bdaddrUtils {
|
|
|
|
public:
|
|
static inline bdaddr_t MullAddress()
|
|
{
|
|
|
|
return ((bdaddr_t) {{0, 0, 0, 0, 0, 0}});
|
|
}
|
|
|
|
|
|
static inline bdaddr_t LocalAddress()
|
|
{
|
|
|
|
return ((bdaddr_t) {{0, 0, 0, 0xff, 0xff, 0xff}});
|
|
}
|
|
|
|
|
|
static inline bdaddr_t BroadcastAddress()
|
|
{
|
|
|
|
return ((bdaddr_t) {{0xff, 0xff, 0xff, 0xff, 0xff, 0xff}});
|
|
}
|
|
|
|
|
|
static const char* ToString(bdaddr_t bdaddr)
|
|
{
|
|
// TODO:
|
|
static char str[12];
|
|
|
|
return str;
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|