summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMaksim Yevmenkin <emax@FreeBSD.org>2010-09-29 18:41:47 +0000
committerMaksim Yevmenkin <emax@FreeBSD.org>2010-09-29 18:41:47 +0000
commit466aed0e461e27cf00867b88df874d67db677fe3 (patch)
tree24741f3a29139580cffcf208f4c56274f6c211fe /lib
parentd000f255a84a96e048104e69d6d4241435301660 (diff)
Notes
Diffstat (limited to 'lib')
-rw-r--r--lib/libbluetooth/bluetooth.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libbluetooth/bluetooth.h b/lib/libbluetooth/bluetooth.h
index a73dbe915bc1..0435b4e2f232 100644
--- a/lib/libbluetooth/bluetooth.h
+++ b/lib/libbluetooth/bluetooth.h
@@ -59,6 +59,10 @@ __BEGIN_DECLS
#define bacpy(dst, src) memcpy((dst), (src), sizeof(bdaddr_t))
#define ba2str(ba, str) bt_ntoa((ba), (str))
#define str2ba(str, ba) (bt_aton((str), (ba)) == 1? 0 : -1)
+#define htobs(d) htole16(d)
+#define htobl(d) htole32(d)
+#define btohs(d) le16toh(d)
+#define btohl(d) le32toh(d)
/*
* Interface to the outside world