[PATCHv6 hcidump 3/4] get_uint64 helper

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Andrei Emeltchenko <andrei.emeltchenko@xxxxxxxxx>

---
 parser/parser.h |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/parser/parser.h b/parser/parser.h
index e975808..25aee09 100644
--- a/parser/parser.h
+++ b/parser/parser.h
@@ -193,6 +193,11 @@ static inline uint64_t get_u64(struct frame *frm)
 	return u64;
 }
 
+static inline uint64_t get_uint64(void *ptr)
+{
+	return btohll(bt_get_unaligned((uint64_t *) ptr));
+}
+
 static inline void get_u128(struct frame *frm, uint64_t *l, uint64_t *h)
 {
 	*h = get_u64(frm);
-- 
1.7.4.1

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux