mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 13:32:45 +00:00
Add the following Linux BlueZ compatibility macros: htobs(), htobl(),
btohs() and btohl() PR: kern/136386 Submitted by: Monty Hall < kungfu_disciple at sbcglobal dot net > MFC after: 1 week
This commit is contained in:
parent
e160180ef7
commit
ff7e67ac1c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=213042
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user