- 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:
Oliver Ruiz Dorantes
2008-04-16 22:17:55 +00:00
parent 6b81bac2bf
commit 01e363a708
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ class RemoteDevice {
bool IsTrustedDevice();
BString GetFriendlyName(bool alwaysAsk); /* Throwing */
BString GetBluetoothAddress();
bdaddr_t GetBluetoothAddress();
bool Equals(RemoteDevice* obj);
/*static RemoteDevice* GetRemoteDevice(Connection conn); Throwing */
+6
View File
@@ -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)
{
// TODO: not safe