Headers for the bluetooth kit, based in the Motorola JSR82 API

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22641 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Oliver Ruiz Dorantes
2007-10-21 17:56:01 +00:00
parent d3f08e7fb8
commit c36b70586d
4 changed files with 175 additions and 0 deletions
+41
View File
@@ -0,0 +1,41 @@
/*
* 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
namespace Bluetooth {
class bdaddrUtils {
public:
static inline bdaddr_t nullAddress() {
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) {
static char str[12];
return str;
}
};
}
#endif