openbsd-ports/sysutils/hcidump/patches/patch-src_bt_lib_c
jasper fe86351074 import bluez-hcidump 1.42
HCIdump reads raw HCI data coming from and going to a Bluetooth device
and prints to screen commands, events and data in a human-readable form.
Optionally, the dump can be written to a file rather than parsed, and
the dump file can be parsed in a subsequent moment.

from jcs@, with some tweaks by me
requested by uwe@
2008-11-29 09:54:49 +00:00

52 lines
1.0 KiB
Plaintext

$OpenBSD: patch-src_bt_lib_c,v 1.1.1.1 2008/11/29 09:54:49 jasper Exp $
--- src/bt_lib.c.orig Tue Aug 12 11:24:32 2008
+++ src/bt_lib.c Tue Aug 12 11:25:26 2008
@@ -47,6 +47,7 @@ void baswap(bdaddr_t *dst, const bdaddr_t *src)
d[i] = s[5-i];
}
+#if 0
char *batostr(const bdaddr_t *ba)
{
char *str = bt_malloc(18);
@@ -76,6 +77,7 @@ bdaddr_t *strtoba(const char *str)
}
return (bdaddr_t *) ba;
}
+#endif
int ba2str(const bdaddr_t *ba, char *str)
{
@@ -86,6 +88,7 @@ int ba2str(const bdaddr_t *ba, char *str)
b[0], b[1], b[2], b[3], b[4], b[5]);
}
+#if 0
int str2ba(const char *str, bdaddr_t *ba)
{
uint8_t b[6];
@@ -191,6 +194,7 @@ int basnprintf(char *str, size_t size, const char *for
return len;
}
+#endif
void *bt_malloc(size_t size)
{
@@ -202,6 +206,7 @@ void bt_free(void *ptr)
free(ptr);
}
+#if 0
/* Bluetooth error codes to Unix errno mapping */
int bt_error(uint16_t code)
{
@@ -276,6 +281,7 @@ int bt_error(uint16_t code)
return ENOSYS;
}
}
+#endif
char *bt_compidtostr(int compid)
{