2014-12-30 09:39:13 +01:00
|
|
|
$NetBSD: patch-lib_bluetooth.c,v 1.1 2014/12/30 08:39:13 plunky Exp $
|
2010-12-19 21:20:42 +01:00
|
|
|
|
2014-12-30 09:39:13 +01:00
|
|
|
Not much of the original library is needed.
|
|
|
|
|
|
|
|
--- lib/bluetooth.c.orig 2014-12-26 17:54:42.000000000 +0000
|
2012-02-15 10:30:23 +01:00
|
|
|
+++ lib/bluetooth.c
|
2010-12-19 21:20:42 +01:00
|
|
|
@@ -48,6 +48,7 @@ void baswap(bdaddr_t *dst, const bdaddr_
|
|
|
|
d[i] = s[5-i];
|
|
|
|
}
|
|
|
|
|
|
|
|
+#if 0
|
|
|
|
char *batostr(const bdaddr_t *ba)
|
|
|
|
{
|
|
|
|
char *str = bt_malloc(18);
|
2011-06-19 15:02:35 +02:00
|
|
|
@@ -73,6 +74,7 @@ bdaddr_t *strtoba(const char *str)
|
2010-12-19 21:20:42 +01:00
|
|
|
|
2011-06-19 15:02:35 +02:00
|
|
|
return ba;
|
2010-12-19 21:20:42 +01:00
|
|
|
}
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
int ba2str(const bdaddr_t *ba, char *str)
|
|
|
|
{
|
2011-06-19 15:02:35 +02:00
|
|
|
@@ -80,6 +82,7 @@ int ba2str(const bdaddr_t *ba, char *str
|
|
|
|
ba->b[5], ba->b[4], ba->b[3], ba->b[2], ba->b[1], ba->b[0]);
|
2010-12-19 21:20:42 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
+#if 0
|
|
|
|
int str2ba(const char *str, bdaddr_t *ba)
|
|
|
|
{
|
2014-12-30 09:39:13 +01:00
|
|
|
int i;
|
|
|
|
@@ -257,6 +260,7 @@ int bt_error(uint16_t code)
|
2010-12-19 21:20:42 +01:00
|
|
|
return ENOSYS;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
+#endif
|
|
|
|
|
2014-12-30 09:39:13 +01:00
|
|
|
const char *bt_compidtostr(int compid)
|
2010-12-19 21:20:42 +01:00
|
|
|
{
|