- Reflect the APi change in the RemoteDevice
- Implement function to compare Bluetooth Addresses git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24992 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -30,7 +30,7 @@ class RemoteDevice {
|
|||||||
|
|
||||||
bool IsTrustedDevice();
|
bool IsTrustedDevice();
|
||||||
BString GetFriendlyName(bool alwaysAsk); /* Throwing */
|
BString GetFriendlyName(bool alwaysAsk); /* Throwing */
|
||||||
BString GetBluetoothAddress();
|
bdaddr_t GetBluetoothAddress();
|
||||||
bool Equals(RemoteDevice* obj);
|
bool Equals(RemoteDevice* obj);
|
||||||
|
|
||||||
/*static RemoteDevice* GetRemoteDevice(Connection conn); Throwing */
|
/*static RemoteDevice* GetRemoteDevice(Connection conn); Throwing */
|
||||||
|
|||||||
@@ -38,6 +38,12 @@ class bdaddrUtils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
static bool Compare(bdaddr_t* ba1, bdaddr_t* ba2)
|
||||||
|
{
|
||||||
|
return (memcmp(ba1, ba2, sizeof(bdaddr_t)) == 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
static char* ToString(const bdaddr_t bdaddr)
|
static char* ToString(const bdaddr_t bdaddr)
|
||||||
{
|
{
|
||||||
// TODO: not safe
|
// TODO: not safe
|
||||||
|
|||||||
Reference in New Issue
Block a user