pkgsrc/sysutils/netbt-hcidump/patches/patch-al
plunky 0fa2b449e6 update to BlueZ HCIdump 2.2, changes are basically increased
parsing for L2CAP packets, new parsing for AVCTP and AVRCP
protocols, some endian bugfixes and the archive now contains
the files needed from bluez-libs so we don't need to get that
separately.
2012-02-15 09:30:23 +00:00

52 lines
1,012 B
Text

$NetBSD: patch-al,v 1.3 2012/02/15 09:30:23 plunky Exp $
--- lib/bluetooth.c.orig 2011-12-22 00:18:58.000000000 +0000
+++ lib/bluetooth.c
@@ -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);
@@ -73,6 +74,7 @@ bdaddr_t *strtoba(const char *str)
return ba;
}
+#endif
int ba2str(const bdaddr_t *ba, char *str)
{
@@ -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]);
}
+#if 0
int str2ba(const char *str, bdaddr_t *ba)
{
bdaddr_t b;
@@ -175,6 +178,7 @@ int basnprintf(char *str, size_t size, c
return len;
}
+#endif
void *bt_malloc(size_t size)
{
@@ -186,6 +190,7 @@ void bt_free(void *ptr)
free(ptr);
}
+#if 0
/* Bluetooth error codes to Unix errno mapping */
int bt_error(uint16_t code)
{
@@ -260,6 +265,7 @@ int bt_error(uint16_t code)
return ENOSYS;
}
}
+#endif
char *bt_compidtostr(int compid)
{