summaryrefslogtreecommitdiffstats
path: root/lib/libbluetooth
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libbluetooth')
-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 a73dbe9..0435b4e 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
OpenPOWER on IntegriCloud