All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH BlueZ] lib: Fix includes in installed header files
@ 2025-08-25 15:46 Arkadiusz Bokowy
  2025-08-25 16:40 ` Bastien Nocera
  2025-08-25 17:07 ` [BlueZ] lib: Fix includes in installed header files bluez.test.bot
  0 siblings, 2 replies; 8+ messages in thread
From: Arkadiusz Bokowy @ 2025-08-25 15:46 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Arkadiusz Bokowy

Every public header file should be self-contained in terms of used
symbols. To satisfy that, hci.h and hci_lib.h need to pull their
direct dependencies, so users will not have to include bluetooth.h
before using for example hci_lib.h.
---
 lib/bluetooth/hci.h     | 3 +++
 lib/bluetooth/hci_lib.h | 6 ++++++
 2 files changed, 9 insertions(+)

diff --git a/lib/bluetooth/hci.h b/lib/bluetooth/hci.h
index 8f59a535a..732477ec4 100644
--- a/lib/bluetooth/hci.h
+++ b/lib/bluetooth/hci.h
@@ -17,8 +17,11 @@
 extern "C" {
 #endif
 
+#include <stdint.h>
 #include <sys/socket.h>
 
+#include <bluetooth/bluetooth.h>
+
 #define HCI_MAX_DEV	16
 
 #define HCI_MAX_AMP_SIZE	(1492 + 4)
diff --git a/lib/bluetooth/hci_lib.h b/lib/bluetooth/hci_lib.h
index 2cb660786..eeb51411a 100644
--- a/lib/bluetooth/hci_lib.h
+++ b/lib/bluetooth/hci_lib.h
@@ -17,6 +17,12 @@
 extern "C" {
 #endif
 
+#include <stdint.h>
+#include <string.h>
+
+#include <bluetooth/bluetooth.h>
+#include <bluetooth/hci.h>
+
 struct hci_request {
 	uint16_t ogf;
 	uint16_t ocf;
-- 
2.47.2


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-08-26  8:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-25 15:46 [PATCH BlueZ] lib: Fix includes in installed header files Arkadiusz Bokowy
2025-08-25 16:40 ` Bastien Nocera
2025-08-25 18:31   ` [PATCH BlueZ v2 1/2] lib: Add missing includes in bluetooth/hci.h Arkadiusz Bokowy
2025-08-25 18:31     ` [PATCH BlueZ v2 2/2] lib: Add missing includes in bluetooth/hci_lib.h Arkadiusz Bokowy
2025-08-25 19:57     ` [BlueZ,v2,1/2] lib: Add missing includes in bluetooth/hci.h bluez.test.bot
2025-08-25 20:20     ` [PATCH BlueZ v2 1/2] " patchwork-bot+bluetooth
2025-08-26  8:13     ` Bastien Nocera
2025-08-25 17:07 ` [BlueZ] lib: Fix includes in installed header files bluez.test.bot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.