kern/136386: commit references a PR
dfilter service
dfilter at FreeBSD.ORG
Wed Sep 22 23:50:03 UTC 2010
The following reply was made to PR kern/136386; it has been noted by GNATS.
From: dfilter at FreeBSD.ORG (dfilter service)
To: bug-followup at FreeBSD.org
Cc:
Subject: Re: kern/136386: commit references a PR
Date: Wed, 22 Sep 2010 23:41:07 +0000 (UTC)
Author: emax
Date: Wed Sep 22 23:41:02 2010
New Revision: 213042
URL: http://svn.freebsd.org/changeset/base/213042
Log:
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
Modified:
head/lib/libbluetooth/bluetooth.h
Modified: head/lib/libbluetooth/bluetooth.h
==============================================================================
--- head/lib/libbluetooth/bluetooth.h Wed Sep 22 22:17:39 2010 (r213041)
+++ head/lib/libbluetooth/bluetooth.h Wed Sep 22 23:41:02 2010 (r213042)
@@ -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
_______________________________________________
svn-src-all at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscribe at freebsd.org"
More information about the freebsd-bluetooth
mailing list