From ed5640d8b587fbcfed7dd7967f3de04b37a76f26 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:06:44 +0200 Subject: Adding upstream version 4:7.4.7. Signed-off-by: Daniel Baumann --- external/bluez_bluetooth/inc/bluetooth/hci_lib.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 external/bluez_bluetooth/inc/bluetooth/hci_lib.h (limited to 'external/bluez_bluetooth/inc/bluetooth/hci_lib.h') diff --git a/external/bluez_bluetooth/inc/bluetooth/hci_lib.h b/external/bluez_bluetooth/inc/bluetooth/hci_lib.h new file mode 100644 index 000000000..d6886c146 --- /dev/null +++ b/external/bluez_bluetooth/inc/bluetooth/hci_lib.h @@ -0,0 +1,23 @@ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Bluez header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to Android. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + **************************************************************************** + ****************************************************************************/ +#ifndef __HCI_LIB_H +#define __HCI_LIB_H + +#ifdef __cplusplus +#endif +#ifdef __cplusplus +#endif +static inline int hci_test_bit(int nr, void* addr) +{ + return *((uint32_t*)addr + (nr >> 5)) & (1 << (nr & 31)); +} +#endif -- cgit v1.2.3