@@ -37,7 +37,6 @@ coverage
ell
lib/bluez.pc
-lib/bluetooth
src/builtin.h
src/bluetoothd
tools/hid2hci.rules
@@ -67,16 +67,23 @@ manual_pages =
plugin_LTLIBRARIES =
lib_sources = lib/bluetooth.c lib/hci.c lib/sdp.c
-lib_headers = lib/bluetooth.h lib/hci.h lib/hci_lib.h \
- lib/sco.h lib/l2cap.h lib/sdp.h lib/sdp_lib.h \
- lib/rfcomm.h lib/bnep.h lib/cmtp.h lib/hidp.h
+lib_headers = \
+ lib/bluetooth/bluetooth.h \
+ lib/bluetooth/bnep.h \
+ lib/bluetooth/cmtp.h \
+ lib/bluetooth/hci.h \
+ lib/bluetooth/hci_lib.h \
+ lib/bluetooth/hidp.h \
+ lib/bluetooth/l2cap.h \
+ lib/bluetooth/rfcomm.h \
+ lib/bluetooth/sco.h \
+ lib/bluetooth/sdp.h \
+ lib/bluetooth/sdp_lib.h
extra_headers = lib/mgmt.h lib/uuid.h lib/a2mp.h lib/amp.h lib/iso.h
extra_sources = lib/uuid.c
-local_headers = $(foreach file,$(lib_headers), lib/bluetooth/$(notdir $(file)))
-
-BUILT_SOURCES = $(local_headers) $(ell_built_sources) src/builtin.h
+BUILT_SOURCES = $(ell_built_sources) src/builtin.h
if LIBRARY
pkginclude_HEADERS += $(lib_headers)
@@ -490,7 +497,7 @@ EXTRA_DIST += doc/btsnoop.txt
EXTRA_DIST += tools/magic.btsnoop
-AM_CPPFLAGS += $(DBUS_CFLAGS) $(GLIB_CFLAGS) -I$(builddir)/lib
+AM_CPPFLAGS += $(DBUS_CFLAGS) $(GLIB_CFLAGS)
unit_tests += unit/test-tester
@@ -756,12 +763,6 @@ endif
src/builtin.h: src/genbuiltin $(builtin_sources)
$(AM_V_GEN)$(srcdir)/src/genbuiltin $(builtin_modules) > $@
-$(lib_libbluetooth_la_OBJECTS): $(local_headers)
-
-lib/bluetooth/%.h: lib/%.h
- $(AM_V_at)$(MKDIR_P) lib/bluetooth
- $(AM_V_GEN)$(LN_S) -f $(abspath $<) $@
-
ell/shared: Makefile
$(AM_V_at)$(MKDIR_P) ell
$(AM_V_GEN)for f in $(ell_shared) ; do \
@@ -802,4 +803,3 @@ endif
clean-local: clean-coverage
-find $(top_builddir) -name "*.gcno" -delete
-find $(top_builddir) -name "*.gcda" -delete
- $(RM) -r lib/bluetooth
@@ -42,7 +42,7 @@ mesh_sources = mesh/mesh.h mesh/mesh.c \
pkglibexec_PROGRAMS += mesh/bluetooth-meshd
mesh/mesh.$(OBJEXT): ell/internal
-mesh/main.$(OBJEXT): src/builtin.h lib/bluetooth/bluetooth.h
+mesh/main.$(OBJEXT): src/builtin.h
mesh_bluetooth_meshd_SOURCES = $(mesh_sources) mesh/main.c
mesh_bluetooth_meshd_LDADD = src/libshared-ell.la $(ell_ldadd) -ljson-c
@@ -15,7 +15,7 @@
#include <stdbool.h>
#include <glib.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "src/log.h"
#include "hal-msg.h"
#include "ipc.h"
@@ -21,9 +21,9 @@
#include <glib.h>
#include "btio/btio.h"
-#include "lib/bluetooth.h"
-#include "lib/sdp.h"
-#include "lib/sdp_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/sdp.h"
+#include "lib/bluetooth/sdp_lib.h"
#include "profiles/audio/a2dp-codecs.h"
#include "src/shared/queue.h"
#include "src/shared/util.h"
@@ -30,7 +30,7 @@
#include <glib.h>
-#include "lib/sdp.h"
+#include "lib/bluetooth/sdp.h"
#include "src/shared/util.h"
#include "src/log.h"
#include "avctp.h"
@@ -26,7 +26,7 @@
#include <glib.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "src/log.h"
#include "src/shared/util.h"
#include "src/shared/queue.h"
@@ -22,9 +22,9 @@
#include <glib.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
-#include "lib/hci_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
+#include "lib/bluetooth/hci_lib.h"
#include "btio/btio.h"
#include "src/shared/util.h"
@@ -18,7 +18,7 @@
#include <errno.h>
#include <string.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "src/shared/util.h"
#include "src/log.h"
@@ -18,9 +18,9 @@
#include <glib.h>
#include "btio/btio.h"
-#include "lib/bluetooth.h"
-#include "lib/sdp.h"
-#include "lib/sdp_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/sdp.h"
+#include "lib/bluetooth/sdp_lib.h"
#include "src/sdp-client.h"
#include "src/shared/util.h"
#include "src/log.h"
@@ -22,8 +22,8 @@
#include <glib.h>
-#include "lib/bluetooth.h"
-#include "lib/sdp.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/sdp.h"
#include "lib/mgmt.h"
#include "lib/uuid.h"
#include "src/shared/util.h"
@@ -31,8 +31,8 @@
#include "src/shared/queue.h"
#include "src/shared/ad.h"
#include "src/eir.h"
-#include "lib/sdp.h"
-#include "lib/sdp_lib.h"
+#include "lib/bluetooth/sdp.h"
+#include "lib/bluetooth/sdp_lib.h"
#include "src/sdp-client.h"
#include "src/sdpd.h"
#include "src/log.h"
@@ -19,8 +19,8 @@
#include <sys/capability.h>
#endif
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
#include "lib/mgmt.h"
#include "src/shared/mainloop.h"
@@ -21,8 +21,8 @@
#include "ipc.h"
#include "ipc-common.h"
-#include "lib/sdp.h"
-#include "lib/sdp_lib.h"
+#include "lib/bluetooth/sdp.h"
+#include "lib/bluetooth/sdp_lib.h"
#include "lib/uuid.h"
#include "bluetooth.h"
#include "gatt.h"
@@ -18,9 +18,9 @@
#include <unistd.h>
#include <glib.h>
-#include "lib/bluetooth.h"
-#include "lib/sdp.h"
-#include "lib/sdp_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/sdp.h"
+#include "lib/bluetooth/sdp_lib.h"
#include "src/sdp-client.h"
#include "src/shared/hfp.h"
#include "src/shared/queue.h"
@@ -18,9 +18,9 @@
#include <unistd.h>
#include <glib.h>
-#include "lib/bluetooth.h"
-#include "lib/sdp.h"
-#include "lib/sdp_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/sdp.h"
+#include "lib/bluetooth/sdp_lib.h"
#include "src/sdp-client.h"
#include "src/uuid-helper.h"
#include "src/shared/hfp.h"
@@ -21,11 +21,11 @@
#include <glib.h>
#include "btio/btio.h"
-#include "lib/bluetooth.h"
-#include "lib/sdp.h"
-#include "lib/sdp_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/sdp.h"
+#include "lib/bluetooth/sdp_lib.h"
#include "lib/uuid.h"
-#include "lib/l2cap.h"
+#include "lib/bluetooth/l2cap.h"
#include "src/log.h"
#include "src/shared/util.h"
#include "src/shared/queue.h"
@@ -22,9 +22,9 @@
#include <glib.h>
#include "btio/btio.h"
-#include "lib/bluetooth.h"
-#include "lib/sdp.h"
-#include "lib/sdp_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/sdp.h"
+#include "lib/bluetooth/sdp_lib.h"
#include "lib/uuid.h"
#include "src/shared/mgmt.h"
#include "src/shared/util.h"
@@ -25,7 +25,7 @@
#include <libgen.h>
#include <glib.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/mgmt.h"
#include "src/shared/tester.h"
@@ -31,8 +31,8 @@
#include <glib.h>
-#include "lib/bluetooth.h"
-#include "lib/sdp.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/sdp.h"
#include "src/log.h"
#include "src/sdpd.h"
@@ -17,12 +17,12 @@
#include <stdint.h>
#include <glib.h>
-#include "lib/sdp.h"
-#include "lib/sdp_lib.h"
+#include "lib/bluetooth/sdp.h"
+#include "lib/bluetooth/sdp_lib.h"
#include "src/sdp-client.h"
#include "ipc.h"
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "map-client.h"
#include "src/log.h"
#include "hal-msg.h"
@@ -30,10 +30,10 @@
#include <linux/if_bridge.h>
#include "btio/btio.h"
-#include "lib/bluetooth.h"
-#include "lib/bnep.h"
-#include "lib/sdp.h"
-#include "lib/sdp_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/bnep.h"
+#include "lib/bluetooth/sdp.h"
+#include "lib/bluetooth/sdp_lib.h"
#include "src/uuid-helper.h"
#include "profiles/network/bnep.h"
#include "src/log.h"
@@ -17,7 +17,7 @@
#include <glib.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "btio/btio.h"
#include "src/log.h"
#include "src/shared/util.h"
@@ -17,10 +17,10 @@
#include <unistd.h>
#include <errno.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "btio/btio.h"
-#include "lib/sdp.h"
-#include "lib/sdp_lib.h"
+#include "lib/bluetooth/sdp.h"
+#include "lib/bluetooth/sdp_lib.h"
#include "src/sdp-client.h"
#include "src/sdpd.h"
#include "src/log.h"
@@ -11,7 +11,7 @@
#include "src/shared/util.h"
#include "src/shared/tester.h"
#include "src/shared/queue.h"
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "android/utils.h"
#include "tester-main.h"
@@ -11,7 +11,7 @@
#include "src/shared/util.h"
#include "src/shared/tester.h"
#include "src/shared/queue.h"
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "android/utils.h"
#include "tester-main.h"
@@ -8,7 +8,7 @@
#include <stdbool.h>
#include "emulator/bthost.h"
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "src/shared/util.h"
#include "src/shared/tester.h"
#include "src/shared/queue.h"
@@ -9,7 +9,7 @@
#include <stdbool.h>
#include "emulator/bthost.h"
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "android/utils.h"
#include "src/shared/tester.h"
#include "src/shared/queue.h"
@@ -10,7 +10,7 @@
#include "emulator/bthost.h"
#include "src/shared/tester.h"
#include "src/shared/queue.h"
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "android/utils.h"
#include "tester-main.h"
@@ -13,7 +13,7 @@
#include <sys/wait.h>
#include <sys/signalfd.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/mgmt.h"
#include "src/shared/util.h"
#include "src/shared/tester.h"
@@ -8,7 +8,7 @@
#include <stdbool.h>
#include "emulator/bthost.h"
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "android/utils.h"
#include "src/shared/tester.h"
#include "src/shared/queue.h"
@@ -19,7 +19,7 @@
#include <glib.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/uuid.h"
#include "src/shared/util.h"
@@ -18,8 +18,8 @@
#include <glib.h>
-#include "lib/sdp.h"
-#include "lib/sdp_lib.h"
+#include "lib/bluetooth/sdp.h"
+#include "lib/bluetooth/sdp_lib.h"
#include "lib/uuid.h"
#include "src/shared/util.h"
@@ -20,7 +20,7 @@
#include <glib.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/uuid.h"
#include "btio/btio.h"
@@ -19,10 +19,10 @@
#include <glib.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
-#include "lib/hci_lib.h"
-#include "lib/sdp.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
+#include "lib/bluetooth/hci_lib.h"
+#include "lib/bluetooth/sdp.h"
#include "lib/uuid.h"
#include "src/shared/util.h"
@@ -26,8 +26,8 @@
#include <readline/readline.h>
#include <readline/history.h>
-#include "lib/bluetooth.h"
-#include "lib/sdp.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/sdp.h"
#include "lib/uuid.h"
#include "src/shared/util.h"
@@ -16,10 +16,10 @@
#include <glib.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
-#include "lib/hci_lib.h"
-#include "lib/sdp.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
+#include "lib/bluetooth/hci_lib.h"
+#include "lib/bluetooth/sdp.h"
#include "lib/uuid.h"
#include "btio/btio.h"
@@ -25,10 +25,10 @@
#include <glib.h>
-#include "lib/bluetooth.h"
-#include "lib/l2cap.h"
-#include "lib/rfcomm.h"
-#include "lib/sco.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/l2cap.h"
+#include "lib/bluetooth/rfcomm.h"
+#include "lib/bluetooth/sco.h"
#include "lib/iso.h"
#include "btio.h"
@@ -28,11 +28,11 @@
#include <wordexp.h>
#include <ctype.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
-#include "lib/hci_lib.h"
-#include "lib/sdp.h"
-#include "lib/sdp_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
+#include "lib/bluetooth/hci_lib.h"
+#include "lib/bluetooth/sdp.h"
+#include "lib/bluetooth/sdp_lib.h"
#include "lib/uuid.h"
#include "src/uuid-helper.h"
@@ -32,7 +32,7 @@
#include "gdbus/gdbus.h"
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/uuid.h"
#include "profiles/audio/a2dp-codecs.h"
@@ -21,8 +21,8 @@
#include <sys/socket.h>
#include <sys/un.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
#include "src/shared/util.h"
#include "src/shared/mainloop.h"
@@ -26,8 +26,8 @@
#include <netdb.h>
#include <arpa/inet.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
#include "src/shared/mainloop.h"
@@ -25,8 +25,8 @@
#include <fcntl.h>
#include <unistd.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
#include "src/shared/util.h"
#include "src/shared/timeout.h"
@@ -22,7 +22,7 @@
#include <endian.h>
#include <stdbool.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "src/shared/util.h"
#include "src/shared/tester.h"
@@ -13,7 +13,7 @@
#include <stdint.h>
#include <sys/uio.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
typedef void (*bthost_send_func) (const struct iovec *iov, int iovlen,
void *user_data);
@@ -25,8 +25,8 @@
#include <glib.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
#include "monitor/bt.h"
#include "emulator/vhci.h"
@@ -22,8 +22,8 @@
#include <sys/uio.h>
#include <time.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
#include "src/shared/util.h"
#include "src/shared/crypto.h"
@@ -25,8 +25,8 @@
#include <sys/epoll.h>
#include <sys/uio.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
#include "src/shared/mainloop.h"
#include "btdev.h"
@@ -26,8 +26,8 @@
#include <netinet/in.h>
#include <arpa/inet.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
#include "src/shared/mainloop.h"
#include "btdev.h"
@@ -22,8 +22,8 @@
#include <stdbool.h>
#include <sys/socket.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
#include "src/shared/util.h"
#include "src/shared/crypto.h"
@@ -24,8 +24,8 @@
#include <unistd.h>
#include <dirent.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
#include "src/shared/io.h"
#include "monitor/bt.h"
@@ -23,8 +23,8 @@
#include <string.h>
#include <sys/socket.h>
-#include "bluetooth.h"
-#include "hci.h"
+#include "bluetooth/bluetooth.h"
+#include "bluetooth/hci.h"
void baswap(bdaddr_t *dst, const bdaddr_t *src)
{
similarity index 100%
rename from lib/bluetooth.h
rename to lib/bluetooth/bluetooth.h
similarity index 100%
rename from lib/bnep.h
rename to lib/bluetooth/bnep.h
similarity index 100%
rename from lib/cmtp.h
rename to lib/bluetooth/cmtp.h
similarity index 100%
rename from lib/hci.h
rename to lib/bluetooth/hci.h
similarity index 100%
rename from lib/hci_lib.h
rename to lib/bluetooth/hci_lib.h
similarity index 100%
rename from lib/hidp.h
rename to lib/bluetooth/hidp.h
similarity index 100%
rename from lib/l2cap.h
rename to lib/bluetooth/l2cap.h
similarity index 100%
rename from lib/rfcomm.h
rename to lib/bluetooth/rfcomm.h
similarity index 100%
rename from lib/sco.h
rename to lib/bluetooth/sco.h
similarity index 100%
rename from lib/sdp.h
rename to lib/bluetooth/sdp.h
similarity index 100%
rename from lib/sdp_lib.h
rename to lib/bluetooth/sdp_lib.h
@@ -29,9 +29,9 @@
#include <sys/ioctl.h>
#include <sys/socket.h>
-#include "bluetooth.h"
-#include "hci.h"
-#include "hci_lib.h"
+#include "bluetooth/bluetooth.h"
+#include "bluetooth/hci.h"
+#include "bluetooth/hci_lib.h"
#ifndef MIN
#define MIN(x, y) ((x) < (y) ? (x) : (y))
@@ -29,12 +29,12 @@
#include <sys/un.h>
#include <netinet/in.h>
-#include "bluetooth.h"
-#include "hci.h"
-#include "hci_lib.h"
-#include "l2cap.h"
-#include "sdp.h"
-#include "sdp_lib.h"
+#include "bluetooth/bluetooth.h"
+#include "bluetooth/hci.h"
+#include "bluetooth/hci_lib.h"
+#include "bluetooth/l2cap.h"
+#include "bluetooth/sdp.h"
+#include "bluetooth/sdp_lib.h"
#define SDPINF(fmt, arg...) syslog(LOG_INFO, fmt "\n", ## arg)
#define SDPERR(fmt, arg...) syslog(LOG_ERR, "%s: " fmt "\n", __func__ , ## arg)
@@ -17,7 +17,7 @@
#include <stdlib.h>
#include <errno.h>
-#include "lib/bluetooth.h"
+#include "bluetooth/bluetooth.h"
#include "uuid.h"
static uint128_t bluetooth_base_uuid = {
@@ -23,7 +23,7 @@
#include <sys/stat.h>
#include <ell/ell.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/mgmt.h"
#include "mesh/mesh.h"
@@ -20,7 +20,7 @@
#include "monitor/bt.h"
#include "src/shared/hci.h"
#include "src/shared/mgmt.h"
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/mgmt.h"
#include "mesh/mesh-defs.h"
@@ -19,8 +19,8 @@
#include <ell/ell.h>
#include "monitor/bt.h"
-#include "lib/bluetooth.h"
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/mgmt.h"
#include "src/shared/mgmt.h"
@@ -14,7 +14,7 @@
#include <ell/ell.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/mgmt.h"
#include "src/shared/mgmt.h"
@@ -14,7 +14,7 @@
#include <ell/ell.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/mgmt.h"
#include "src/shared/mgmt.h"
@@ -18,7 +18,7 @@
#include <stdlib.h>
#include <string.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "src/shared/util.h"
#include "bt.h"
@@ -19,7 +19,7 @@
#include <sys/time.h>
#include <unistd.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "src/shared/util.h"
#include "src/shared/queue.h"
@@ -27,10 +27,10 @@
#include <glib.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/uuid.h"
-#include "lib/hci.h"
-#include "lib/hci_lib.h"
+#include "lib/bluetooth/hci.h"
+#include "lib/bluetooth/hci_lib.h"
#include "src/shared/util.h"
#include "src/shared/queue.h"
@@ -20,7 +20,7 @@
#include <ctype.h>
#include <inttypes.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/uuid.h"
#include "src/shared/util.h"
@@ -17,7 +17,7 @@
#include <stdlib.h>
#include <string.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "src/shared/util.h"
#include "bt.h"
@@ -20,7 +20,7 @@
#include <ctype.h>
#include <inttypes.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/uuid.h"
#include "src/shared/util.h"
@@ -30,8 +30,8 @@
#include <fcntl.h>
#include <linux/filter.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
#include "lib/mgmt.h"
#include "src/shared/util.h"
@@ -22,9 +22,9 @@
#include <sys/ioctl.h>
#include <sys/socket.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
-#include "lib/hci_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
+#include "lib/bluetooth/hci_lib.h"
#include "src/shared/mainloop.h"
@@ -17,8 +17,8 @@
#include <stdio.h>
#include <inttypes.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
#include "src/shared/util.h"
#include "display.h"
@@ -19,7 +19,7 @@
#include <string.h>
#include <inttypes.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/uuid.h"
#include "src/shared/util.h"
@@ -30,7 +30,7 @@
#include <stdio.h>
#include <inttypes.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/uuid.h"
#include "src/shared/util.h"
@@ -27,10 +27,10 @@
#include <sys/time.h>
#include <sys/socket.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/uuid.h"
-#include "lib/hci.h"
-#include "lib/hci_lib.h"
+#include "lib/bluetooth/hci.h"
+#include "lib/bluetooth/hci_lib.h"
#include "src/shared/util.h"
#include "src/shared/btsnoop.h"
@@ -20,7 +20,7 @@
#include <ctype.h>
#include <inttypes.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/uuid.h"
#include "src/shared/util.h"
@@ -19,7 +19,7 @@
#include <string.h>
#include <inttypes.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/uuid.h"
#include "src/shared/util.h"
@@ -18,10 +18,10 @@
#include <glib.h>
-#include "lib/bluetooth.h"
-#include "lib/rfcomm.h"
-#include "lib/sdp.h"
-#include "lib/sdp_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/rfcomm.h"
+#include "lib/bluetooth/sdp.h"
+#include "lib/bluetooth/sdp_lib.h"
#include "gdbus/gdbus.h"
#include "btio/btio.h"
@@ -21,7 +21,7 @@
#include <glib.h>
-#include "lib/sdp.h"
+#include "lib/bluetooth/sdp.h"
#include "gobex/gobex-apparam.h"
#include "gdbus/gdbus.h"
@@ -20,8 +20,8 @@
#include <glib.h>
-#include "lib/bluetooth.h"
-#include "lib/sdp.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/sdp.h"
#include "gobex/gobex-apparam.h"
#include "gdbus/gdbus.h"
@@ -22,7 +22,7 @@
#include <glib.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/uuid.h"
#include "gdbus/gdbus.h"
@@ -21,7 +21,7 @@
#include <glib.h>
#include <dbus/dbus.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "gdbus/gdbus.h"
@@ -17,9 +17,9 @@
#include <unistd.h>
#include <sys/ioctl.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
-#include "lib/hci_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
+#include "lib/bluetooth/hci_lib.h"
#include "tools/hciattach.h"
#include "peripheral/attach.h"
@@ -15,7 +15,7 @@
#include <stdio.h>
#include <string.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/mgmt.h"
#include "src/shared/util.h"
#include "src/shared/mgmt.h"
@@ -18,8 +18,8 @@
#include <string.h>
#include <sys/epoll.h>
-#include "lib/bluetooth.h"
-#include "lib/l2cap.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/l2cap.h"
#include "lib/uuid.h"
#include "src/shared/mainloop.h"
#include "src/shared/util.h"
@@ -19,7 +19,7 @@
#include <sys/stat.h>
#include <errno.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/uuid.h"
#include "src/adapter.h"
@@ -20,8 +20,8 @@
#include <glib.h>
-#include "lib/bluetooth.h"
-#include "lib/sdp.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/sdp.h"
#include "src/plugin.h"
#include "src/adapter.h"
@@ -19,8 +19,8 @@
#include <fcntl.h>
#include <sys/utsname.h>
-#include "lib/bluetooth.h"
-#include "lib/sdp.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/sdp.h"
#include "gdbus/gdbus.h"
@@ -16,9 +16,9 @@
#include <stdlib.h>
#include <errno.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
-#include "lib/sdp.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
+#include "lib/bluetooth/sdp.h"
#include "gdbus/gdbus.h"
@@ -19,8 +19,8 @@
#include <glib.h>
-#include "lib/bluetooth.h"
-#include "lib/sdp.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/sdp.h"
#include "lib/uuid.h"
#include "lib/mgmt.h"
@@ -26,8 +26,8 @@
#include <glib.h>
#include <libudev.h>
-#include "lib/bluetooth.h"
-#include "lib/sdp.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/sdp.h"
#include "lib/uuid.h"
#include "src/adapter.h"
@@ -23,9 +23,9 @@
#include <dbus/dbus.h>
#include <glib.h>
-#include "lib/bluetooth.h"
-#include "lib/sdp.h"
-#include "lib/sdp_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/sdp.h"
+#include "lib/bluetooth/sdp_lib.h"
#include "lib/uuid.h"
#include "gdbus/gdbus.h"
@@ -29,9 +29,9 @@
#include <glib.h>
-#include "lib/bluetooth.h"
-#include "lib/sdp.h"
-#include "lib/l2cap.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/sdp.h"
+#include "lib/bluetooth/l2cap.h"
#include "lib/uuid.h"
#include "btio/btio.h"
@@ -23,9 +23,9 @@
#include <glib.h>
-#include "lib/bluetooth.h"
-#include "lib/sdp.h"
-#include "lib/sdp_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/sdp.h"
+#include "lib/bluetooth/sdp_lib.h"
#include "lib/uuid.h"
#include "btio/btio.h"
@@ -30,9 +30,9 @@
#include "gdbus/gdbus.h"
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
-#include "lib/sdp.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
+#include "lib/bluetooth/sdp.h"
#include "lib/uuid.h"
#include "lib/iso.h"
@@ -27,7 +27,7 @@
#include "gdbus/gdbus.h"
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/uuid.h"
#include "src/dbus-common.h"
@@ -27,9 +27,9 @@
#include <glib.h>
#include <dbus/dbus.h>
-#include "lib/bluetooth.h"
-#include "lib/sdp.h"
-#include "lib/sdp_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/sdp.h"
+#include "lib/bluetooth/sdp_lib.h"
#include "lib/uuid.h"
#include "gdbus/gdbus.h"
@@ -27,9 +27,9 @@
#include "gdbus/gdbus.h"
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
-#include "lib/sdp.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
+#include "lib/bluetooth/sdp.h"
#include "lib/uuid.h"
#include "src/dbus-common.h"
@@ -27,9 +27,9 @@
#include "gdbus/gdbus.h"
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
-#include "lib/sdp.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
+#include "lib/bluetooth/sdp.h"
#include "lib/uuid.h"
#include "src/dbus-common.h"
@@ -20,8 +20,8 @@
#include <glib.h>
-#include "lib/bluetooth.h"
-#include "lib/sdp.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/sdp.h"
#include "lib/uuid.h"
#include "lib/mgmt.h"
@@ -27,9 +27,9 @@
#include "gdbus/gdbus.h"
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
-#include "lib/sdp.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
+#include "lib/bluetooth/sdp.h"
#include "lib/uuid.h"
#include "src/dbus-common.h"
@@ -20,8 +20,8 @@
#include <glib.h>
#include <dbus/dbus.h>
-#include "lib/bluetooth.h"
-#include "lib/sdp.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/sdp.h"
#include "gdbus/gdbus.h"
@@ -21,8 +21,8 @@
#include <glib.h>
#include <dbus/dbus.h>
-#include "lib/bluetooth.h"
-#include "lib/sdp.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/sdp.h"
#include "gdbus/gdbus.h"
@@ -19,8 +19,8 @@
#include <glib.h>
-#include "lib/bluetooth.h"
-#include "lib/sdp.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/sdp.h"
#include "lib/uuid.h"
#include "gdbus/gdbus.h"
@@ -27,9 +27,9 @@
#include "gdbus/gdbus.h"
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
-#include "lib/sdp.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
+#include "lib/bluetooth/sdp.h"
#include "lib/uuid.h"
#include "src/dbus-common.h"
@@ -19,8 +19,8 @@
#include "src/log.h"
-#include "lib/bluetooth.h"
-#include "lib/sdp.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/sdp.h"
#include "lib/uuid.h"
#include "src/shared/util.h"
@@ -23,9 +23,9 @@
#include <glib.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
-#include "lib/sdp.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
+#include "lib/bluetooth/sdp.h"
#include "lib/uuid.h"
#include "src/shared/util.h"
@@ -20,10 +20,10 @@
#include <sys/socket.h>
#include <netinet/in.h>
-#include "lib/bluetooth.h"
-#include "lib/l2cap.h"
-#include "lib/sdp.h"
-#include "lib/sdp_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/l2cap.h"
+#include "lib/bluetooth/sdp.h"
+#include "lib/bluetooth/sdp_lib.h"
#include "cups.h"
@@ -25,9 +25,9 @@
#include <glib.h>
-#include "lib/bluetooth.h"
-#include "lib/sdp.h"
-#include "lib/sdp_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/sdp.h"
+#include "lib/bluetooth/sdp_lib.h"
#include "gdbus/gdbus.h"
@@ -18,9 +18,9 @@
#include <signal.h>
#include <sys/socket.h>
-#include "lib/bluetooth.h"
-#include "lib/sdp.h"
-#include "lib/sdp_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/sdp.h"
+#include "lib/bluetooth/sdp_lib.h"
#include "cups.h"
@@ -18,10 +18,10 @@
#include <signal.h>
#include <sys/socket.h>
-#include "lib/bluetooth.h"
-#include "lib/rfcomm.h"
-#include "lib/sdp.h"
-#include "lib/sdp_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/rfcomm.h"
+#include "lib/bluetooth/sdp.h"
+#include "lib/bluetooth/sdp_lib.h"
#include "cups.h"
@@ -17,8 +17,8 @@
#include <glib.h>
-#include "lib/bluetooth.h"
-#include "lib/sdp.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/sdp.h"
#include "lib/uuid.h"
#include "src/plugin.h"
@@ -18,8 +18,8 @@
#include "src/log.h"
-#include "lib/bluetooth.h"
-#include "lib/sdp.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/sdp.h"
#include "lib/uuid.h"
#include "src/shared/util.h"
@@ -23,9 +23,9 @@
#include <glib.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
-#include "lib/sdp.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
+#include "lib/bluetooth/sdp.h"
#include "lib/uuid.h"
#include "src/shared/util.h"
@@ -19,9 +19,9 @@
#include <glib.h>
-#include "lib/bluetooth.h"
-#include "lib/l2cap.h"
-#include "lib/sdp.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/l2cap.h"
+#include "lib/bluetooth/sdp.h"
#include "gdbus/gdbus.h"
@@ -13,8 +13,8 @@
#include <stdbool.h>
-#include "lib/sdp.h"
-#include "lib/sdp_lib.h"
+#include "lib/bluetooth/sdp.h"
+#include "lib/bluetooth/sdp_lib.h"
#include "lib/uuid.h"
#include "btio/btio.h"
@@ -17,9 +17,9 @@
#include <glib.h>
-#include "lib/bluetooth.h"
-#include "lib/sdp.h"
-#include "lib/sdp_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/sdp.h"
+#include "lib/bluetooth/sdp_lib.h"
#include "lib/uuid.h"
#include "gdbus/gdbus.h"
@@ -22,7 +22,7 @@
#include <glib.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "bluetooth/l2cap.h"
#include "btio/btio.h"
#include "src/log.h"
@@ -22,10 +22,10 @@
#include <sys/ioctl.h>
#include <sys/uio.h>
-#include "lib/bluetooth.h"
-#include "lib/hidp.h"
-#include "lib/sdp.h"
-#include "lib/sdp_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hidp.h"
+#include "lib/bluetooth/sdp.h"
+#include "lib/bluetooth/sdp_lib.h"
#include "lib/uuid.h"
#include "gdbus/gdbus.h"
@@ -27,8 +27,8 @@
#include <glib.h>
-#include "lib/bluetooth.h"
-#include "lib/sdp.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/sdp.h"
#include "lib/uuid.h"
#include "src/shared/util.h"
@@ -24,8 +24,8 @@
#include <glib.h>
-#include "lib/bluetooth.h"
-#include "lib/sdp.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/sdp.h"
#include "lib/uuid.h"
#include "src/log.h"
@@ -15,9 +15,9 @@
#include <errno.h>
#include <stdbool.h>
-#include "lib/bluetooth.h"
-#include "lib/sdp.h"
-#include "lib/sdp_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/sdp.h"
+#include "lib/bluetooth/sdp_lib.h"
#include "lib/uuid.h"
#include "src/log.h"
@@ -19,8 +19,8 @@
#include <glib.h>
#include <dbus/dbus.h>
-#include "lib/bluetooth.h"
-#include "lib/sdp.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/sdp.h"
#include "lib/uuid.h"
#include "src/log.h"
@@ -15,8 +15,8 @@
#include <errno.h>
#include <alsa/asoundlib.h>
-#include "lib/bluetooth.h"
-#include "lib/sdp.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/sdp.h"
#include "lib/uuid.h"
#include "src/plugin.h"
@@ -26,9 +26,9 @@
#include <glib.h>
-#include "lib/bluetooth.h"
-#include "lib/l2cap.h"
-#include "lib/bnep.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/l2cap.h"
+#include "lib/bluetooth/bnep.h"
#include "lib/uuid.h"
#include "src/log.h"
@@ -21,9 +21,9 @@
#include <glib.h>
-#include "lib/bluetooth.h"
-#include "lib/bnep.h"
-#include "lib/sdp.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/bnep.h"
+#include "lib/bluetooth/sdp.h"
#include "gdbus/gdbus.h"
@@ -17,9 +17,9 @@
#include <glib.h>
-#include "lib/bluetooth.h"
-#include "lib/bnep.h"
-#include "lib/sdp.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/bnep.h"
+#include "lib/bluetooth/sdp.h"
#include "lib/uuid.h"
#include "src/log.h"
@@ -21,10 +21,10 @@
#include <glib.h>
-#include "lib/bluetooth.h"
-#include "lib/bnep.h"
-#include "lib/sdp.h"
-#include "lib/sdp_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/bnep.h"
+#include "lib/bluetooth/sdp.h"
+#include "lib/bluetooth/sdp_lib.h"
#include "lib/uuid.h"
#include "gdbus/gdbus.h"
@@ -12,8 +12,8 @@
#include <stdbool.h>
-#include "lib/bluetooth.h"
-#include "lib/sdp.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/sdp.h"
#include "src/log.h"
#include "src/adapter.h"
@@ -19,8 +19,8 @@
#include <errno.h>
#include <glib.h>
-#include "lib/sdp.h"
-#include "lib/sdp_lib.h"
+#include "lib/bluetooth/sdp.h"
+#include "lib/bluetooth/sdp_lib.h"
#include "lib/uuid.h"
#include "gdbus/gdbus.h"
@@ -16,8 +16,8 @@
#include <stdbool.h>
#include <errno.h>
-#include "lib/bluetooth.h"
-#include "lib/sdp.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/sdp.h"
#include "lib/uuid.h"
#include "src/log.h"
@@ -20,8 +20,8 @@
#include "src/log.h"
-#include "lib/bluetooth.h"
-#include "lib/sdp.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/sdp.h"
#include "lib/uuid.h"
#include "src/shared/util.h"
@@ -13,8 +13,8 @@
#include <dbus/dbus.h>
#include <glib.h>
-#include <lib/bluetooth.h>
-#include <lib/sdp.h>
+#include <lib/bluetooth/bluetooth.h>
+#include <lib/bluetooth/sdp.h>
#define ADAPTER_INTERFACE "org.bluez.Adapter1"
@@ -21,7 +21,7 @@
#include <dbus/dbus.h>
#include <gdbus/gdbus.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/mgmt.h"
#include "adapter.h"
@@ -20,9 +20,9 @@
#include <dbus/dbus.h>
#include <gdbus/gdbus.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/mgmt.h"
-#include "lib/sdp.h"
+#include "lib/bluetooth/sdp.h"
#include "adapter.h"
#include "dbus-common.h"
@@ -23,8 +23,8 @@
#include <glib.h>
#include <dbus/dbus.h>
-#include "lib/bluetooth.h"
-#include "lib/sdp.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/sdp.h"
#include "gdbus/gdbus.h"
@@ -18,7 +18,7 @@
#include <glib.h>
#include "gdbus/gdbus.h"
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "src/shared/queue.h"
#include "src/shared/util.h"
#include "battery.h"
@@ -27,9 +27,9 @@
#include <glib.h>
#include <dbus/dbus.h>
-#include "lib/bluetooth.h"
-#include "lib/sdp.h"
-#include "lib/sdp_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/sdp.h"
+#include "lib/bluetooth/sdp_lib.h"
#include "lib/uuid.h"
#include "gdbus/gdbus.h"
@@ -21,9 +21,9 @@
#include <stdbool.h>
#include <glib.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
-#include "lib/sdp.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
+#include "lib/bluetooth/sdp.h"
#include "src/shared/util.h"
#include "uuid-helper.h"
@@ -11,7 +11,7 @@
#include <glib.h>
-#include "lib/sdp.h"
+#include "lib/bluetooth/sdp.h"
#include "lib/uuid.h"
#define EIR_FLAGS 0x01 /* flags */
@@ -21,8 +21,8 @@
#include <dbus/dbus.h>
-#include "lib/bluetooth.h"
-#include "lib/sdp.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/sdp.h"
#include "lib/uuid.h"
#include "gdbus/gdbus.h"
@@ -17,9 +17,9 @@
#include <errno.h>
#include <unistd.h>
-#include "lib/bluetooth.h"
-#include "lib/sdp.h"
-#include "lib/sdp_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/sdp.h"
+#include "lib/bluetooth/sdp_lib.h"
#include "lib/uuid.h"
#include "btio/btio.h"
#include "gdbus/gdbus.h"
@@ -25,8 +25,8 @@
#include <glib.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
#include "src/shared/util.h"
#include "src/shared/log.h"
@@ -30,8 +30,8 @@
#include <dbus/dbus.h>
-#include "lib/bluetooth.h"
-#include "lib/sdp.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/sdp.h"
#include "gdbus/gdbus.h"
#include "btio/btio.h"
@@ -13,7 +13,7 @@
#endif
#define _GNU_SOURCE
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "oui.h"
#ifdef HAVE_UDEV
@@ -19,7 +19,7 @@
#include <glib.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "btio/btio.h"
#include "src/plugin.h"
@@ -21,9 +21,9 @@
#include <glib.h>
#include <dbus/dbus.h>
-#include "lib/bluetooth.h"
-#include "lib/sdp.h"
-#include "lib/sdp_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/sdp.h"
+#include "lib/bluetooth/sdp_lib.h"
#include "lib/uuid.h"
#include "gdbus/gdbus.h"
@@ -23,8 +23,8 @@
#include <glib.h>
-#include "lib/bluetooth.h"
-#include "lib/sdp.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/sdp.h"
#include "log.h"
#include "adapter.h"
@@ -16,9 +16,9 @@
#include <glib.h>
-#include "lib/bluetooth.h"
-#include "lib/sdp.h"
-#include "lib/sdp_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/sdp.h"
+#include "lib/bluetooth/sdp_lib.h"
#include "btio/btio.h"
#include "shared/timeout.h"
@@ -22,8 +22,8 @@
#include <glib.h>
-#include "lib/sdp.h"
-#include "lib/sdp_lib.h"
+#include "lib/bluetooth/sdp.h"
+#include "lib/bluetooth/sdp_lib.h"
#include "sdp-xml.h"
@@ -18,9 +18,9 @@
#include <stdlib.h>
#include <stdbool.h>
-#include "lib/bluetooth.h"
-#include "lib/sdp.h"
-#include "lib/sdp_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/sdp.h"
+#include "lib/bluetooth/sdp_lib.h"
#include "sdpd.h"
#include "log.h"
@@ -20,10 +20,10 @@
#include <limits.h>
#include <stdbool.h>
-#include "lib/bluetooth.h"
-#include "lib/l2cap.h"
-#include "lib/sdp.h"
-#include "lib/sdp_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/l2cap.h"
+#include "lib/bluetooth/sdp.h"
+#include "lib/bluetooth/sdp_lib.h"
#include "src/shared/util.h"
@@ -25,10 +25,10 @@
#include <glib.h>
-#include "lib/bluetooth.h"
-#include "lib/l2cap.h"
-#include "lib/sdp.h"
-#include "lib/sdp_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/l2cap.h"
+#include "lib/bluetooth/sdp.h"
+#include "lib/bluetooth/sdp_lib.h"
#include "log.h"
#include "sdpd.h"
@@ -23,9 +23,9 @@
#include <glib.h>
-#include "lib/bluetooth.h"
-#include "lib/sdp.h"
-#include "lib/sdp_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/sdp.h"
+#include "lib/bluetooth/sdp_lib.h"
#include "src/shared/util.h"
#include "sdpd.h"
@@ -23,8 +23,8 @@
#include <glib.h>
-#include "lib/bluetooth.h"
-#include "lib/sdp.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/sdp.h"
#include "log.h"
#include "backtrace.h"
@@ -16,7 +16,7 @@
#include <glib.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/uuid.h"
#include "log.h"
@@ -16,8 +16,8 @@
#include <ctype.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
#include "src/shared/ad.h"
@@ -11,7 +11,7 @@
#include <inttypes.h>
#include <stdbool.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/uuid.h"
#define BT_AD_MAX_DATA_LEN 31
@@ -20,8 +20,8 @@
#include "src/shared/queue.h"
#include "src/shared/util.h"
#include "src/shared/timeout.h"
-#include "lib/bluetooth.h"
-#include "lib/l2cap.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/l2cap.h"
#include "lib/uuid.h"
#include "src/shared/att.h"
#include "src/shared/crypto.h"
@@ -16,7 +16,7 @@
#include <unistd.h>
#include <errno.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/uuid.h"
#include "src/shared/io.h"
@@ -16,7 +16,7 @@
#include <errno.h>
#include <poll.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/uuid.h"
#include "lib/iso.h"
@@ -15,7 +15,7 @@
#include <ell/ell.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "src/shared/btp.h"
#define BTP_MTU 512
@@ -15,9 +15,9 @@
#include <unistd.h>
#include <errno.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/uuid.h"
-#include "lib/hci.h"
+#include "lib/bluetooth/hci.h"
#include "src/shared/queue.h"
#include "src/shared/util.h"
@@ -17,7 +17,7 @@
#include <glib.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/uuid.h"
#include "src/shared/queue.h"
@@ -15,7 +15,7 @@
#include <stdio.h>
#include <stdlib.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/mgmt.h"
#include "src/shared/util.h"
@@ -13,7 +13,7 @@
#endif
#include "src/shared/att.h"
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/uuid.h"
#include "src/shared/gatt-helpers.h"
#include "src/shared/util.h"
@@ -15,7 +15,7 @@
#include <stdbool.h>
#include <errno.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/uuid.h"
#include "src/shared/util.h"
#include "src/shared/queue.h"
@@ -15,7 +15,7 @@
#include "src/shared/queue.h"
#include "src/shared/att.h"
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/uuid.h"
#include "src/shared/gatt-helpers.h"
#include "src/shared/util.h"
@@ -17,7 +17,7 @@
#include <errno.h>
#include "src/shared/att.h"
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/uuid.h"
#include "src/shared/queue.h"
#include "src/shared/gatt-db.h"
@@ -23,8 +23,8 @@
#include <signal.h>
#include <sys/socket.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
#include "src/shared/util.h"
#include "src/shared/log.h"
@@ -15,9 +15,9 @@
#include <unistd.h>
#include <errno.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/uuid.h"
-#include "lib/hci.h"
+#include "lib/bluetooth/hci.h"
#include "src/shared/queue.h"
#include "src/shared/util.h"
@@ -17,9 +17,9 @@
#include <string.h>
#include <errno.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/mgmt.h"
-#include "lib/hci.h"
+#include "lib/bluetooth/hci.h"
#include "src/shared/io.h"
#include "src/shared/queue.h"
@@ -14,7 +14,7 @@
#include <unistd.h>
#include <errno.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/uuid.h"
#include "src/shared/queue.h"
@@ -25,8 +25,8 @@
#include <glib.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
#ifdef HAVE_VALGRIND_MEMCHECK_H
#include <valgrind/memcheck.h>
@@ -29,7 +29,7 @@
#include <sys/random.h>
#endif
-#include <lib/bluetooth.h>
+#include <lib/bluetooth/bluetooth.h>
/* define MAX_INPUT for musl */
#ifndef MAX_INPUT
@@ -15,7 +15,7 @@
#include <unistd.h>
#include <errno.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/uuid.h"
#include "src/shared/queue.h"
@@ -26,9 +26,9 @@
#include <glib.h>
-#include "lib/bluetooth.h"
-#include "lib/sdp.h"
-#include "lib/sdp_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/sdp.h"
+#include "lib/bluetooth/sdp_lib.h"
#include "lib/uuid.h"
#include "textfile.h"
@@ -19,9 +19,9 @@
#include <errno.h>
#include <arpa/inet.h>
-#include "lib/bluetooth.h"
-#include "lib/sdp.h"
-#include "lib/sdp_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/sdp.h"
+#include "lib/bluetooth/sdp_lib.h"
#include "uuid-helper.h"
@@ -22,7 +22,7 @@
#include <getopt.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/mgmt.h"
#include "monitor/bt.h"
@@ -23,9 +23,9 @@
#include <sys/ioctl.h>
#include <sys/socket.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
-#include "lib/hci_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
+#include "lib/bluetooth/hci_lib.h"
static int activate_amp_controller(int dev_id)
{
@@ -27,10 +27,10 @@
#include <sys/ioctl.h>
#include <sys/socket.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
-#include "lib/hci_lib.h"
-#include "lib/l2cap.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
+#include "lib/bluetooth/hci_lib.h"
+#include "lib/bluetooth/l2cap.h"
#include "profiles/audio/a2dp-codecs.h"
@@ -22,11 +22,11 @@
#include <sys/socket.h>
#include <netinet/in.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
-#include "lib/hci_lib.h"
-#include "lib/l2cap.h"
-#include "lib/sdp.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
+#include "lib/bluetooth/hci_lib.h"
+#include "lib/bluetooth/l2cap.h"
+#include "lib/bluetooth/sdp.h"
#define AVDTP_PKT_TYPE_SINGLE 0x00
#define AVDTP_PKT_TYPE_START 0x01
@@ -20,9 +20,9 @@
#include <sys/ioctl.h>
#include <sys/socket.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
-#include "lib/hci_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
+#include "lib/bluetooth/hci_lib.h"
#include "src/oui.h"
@@ -26,7 +26,7 @@
#include <glib.h>
#include "gdbus/gdbus.h"
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/uuid.h"
#include "src/shared/util.h"
@@ -20,8 +20,8 @@
#include <glib.h>
-#include "lib/bluetooth.h"
-#include "lib/bnep.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/bnep.h"
#include "lib/mgmt.h"
#include "monitor/bt.h"
@@ -28,14 +28,14 @@
#include <glib.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
-#include "lib/hci_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
+#include "lib/bluetooth/hci_lib.h"
#include "src/log.h"
#include "src/shared/util.h"
#include "btio/btio.h"
-#include "lib/bnep.h"
+#include "lib/bluetooth/bnep.h"
#include "profiles/network/bnep.h"
enum {
@@ -25,9 +25,9 @@
#include <sys/ioctl.h>
#include <poll.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
-#include "lib/hci_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
+#include "lib/bluetooth/hci_lib.h"
#include "hciattach.h"
#include "monitor/bt.h"
@@ -21,10 +21,10 @@
#include <limits.h>
#include <errno.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
-#include "lib/hci_lib.h"
-#include "lib/l2cap.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
+#include "lib/bluetooth/hci_lib.h"
+#include "lib/bluetooth/l2cap.h"
#include "lib/uuid.h"
#include "src/shared/mainloop.h"
@@ -21,10 +21,10 @@
#include <unistd.h>
#include <errno.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
-#include "lib/hci_lib.h"
-#include "lib/l2cap.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
+#include "lib/bluetooth/hci_lib.h"
+#include "lib/bluetooth/l2cap.h"
#include "lib/uuid.h"
#include "src/shared/mainloop.h"
@@ -23,7 +23,7 @@
#include <glib.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "btio/btio.h"
@@ -29,8 +29,8 @@
#include <linux/capability.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
#include "src/shared/util.h"
#include "src/shared/mainloop.h"
@@ -20,7 +20,7 @@
#include <ell/ell.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "src/shared/btp.h"
#define AD_PATH "/org/bluez/advertising"
@@ -22,7 +22,7 @@
#include <fcntl.h>
#include <poll.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "src/shared/ad.h"
#include "src/shared/btp.h"
@@ -24,13 +24,13 @@
#include <sys/ioctl.h>
#include <sys/socket.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
-#include "lib/hci_lib.h"
-#include "lib/l2cap.h"
-#include "lib/sdp.h"
-#include "lib/sdp_lib.h"
-#include "lib/cmtp.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
+#include "lib/bluetooth/hci_lib.h"
+#include "lib/bluetooth/l2cap.h"
+#include "lib/bluetooth/sdp.h"
+#include "lib/bluetooth/sdp_lib.h"
+#include "lib/bluetooth/cmtp.h"
static volatile sig_atomic_t __io_canceled = 0;
@@ -23,10 +23,10 @@
#include <sys/ioctl.h>
#include <sys/socket.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
-#include "lib/hci_lib.h"
-#include "lib/l2cap.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
+#include "lib/bluetooth/hci_lib.h"
+#include "lib/bluetooth/l2cap.h"
#include "src/shared/mainloop.h"
@@ -30,9 +30,9 @@
#include <sys/param.h>
#include <sys/ioctl.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
-#include "lib/hci_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
+#include "lib/bluetooth/hci_lib.h"
#include "src/shared/tty.h"
@@ -22,9 +22,9 @@
#include <sys/param.h>
#include <sys/ioctl.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
-#include "lib/hci_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
+#include "lib/bluetooth/hci_lib.h"
#include "hciattach.h"
@@ -24,9 +24,9 @@
#include <time.h>
#include <limits.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
-#include "lib/hci_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
+#include "lib/bluetooth/hci_lib.h"
#include "hciattach.h"
@@ -23,9 +23,9 @@
#include <sys/ioctl.h>
#include <time.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
-#include "lib/hci_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
+#include "lib/bluetooth/hci_lib.h"
#include "hciattach.h"
@@ -30,9 +30,9 @@
#include <sys/ioctl.h>
#include <sys/uio.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
-#include "lib/hci_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
+#include "lib/bluetooth/hci_lib.h"
#include "hciattach.h"
@@ -22,7 +22,7 @@
#include <dirent.h>
#include <sys/param.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "hciattach.h"
@@ -25,9 +25,9 @@
#include <sys/param.h>
#include <sys/ioctl.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
-#include "lib/hci_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
+#include "lib/bluetooth/hci_lib.h"
#include "hciattach.h"
@@ -29,9 +29,9 @@
#include <sys/ioctl.h>
#include <sys/uio.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
-#include "lib/hci_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
+#include "lib/bluetooth/hci_lib.h"
#include "hciattach.h"
@@ -27,9 +27,9 @@
#include <sys/socket.h>
#include <sys/stat.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
-#include "lib/hci_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
+#include "lib/bluetooth/hci_lib.h"
#include "src/textfile.h"
#include "src/shared/util.h"
@@ -30,8 +30,8 @@
#include "parser/parser.h"
#include "parser/sdp.h"
-#include "lib/hci.h"
-#include "lib/hci_lib.h"
+#include "lib/bluetooth/hci.h"
+#include "lib/bluetooth/hci_lib.h"
#define SNAP_LEN HCI_MAX_FRAME_SIZE
@@ -18,9 +18,9 @@
#include <getopt.h>
#include <sys/socket.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
-#include "lib/hci_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
+#include "lib/bluetooth/hci_lib.h"
static struct option main_options[] = {
{ "device", 1, 0, 'i' },
@@ -16,9 +16,9 @@
#include <stdio.h>
#include <sys/socket.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
-#include "lib/hci_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
+#include "lib/bluetooth/hci_lib.h"
int main(int argc, char *argv[])
{
@@ -28,9 +28,9 @@
#include <sys/socket.h>
#include <signal.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
-#include "lib/hci_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
+#include "lib/bluetooth/hci_lib.h"
#include "src/oui.h"
@@ -14,7 +14,7 @@
#include <stdio.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
static const struct {
uint16_t vendor;
@@ -22,10 +22,10 @@
#include <glib.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/mgmt.h"
-#include "lib/hci.h"
-#include "lib/hci_lib.h"
+#include "lib/bluetooth/hci.h"
+#include "lib/bluetooth/hci_lib.h"
#include "monitor/bt.h"
#include "emulator/bthost.h"
@@ -20,7 +20,7 @@
#include <glib.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/iso.h"
#include "lib/mgmt.h"
@@ -35,9 +35,9 @@
#include <sys/wait.h>
#include <poll.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
-#include "lib/hci_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
+#include "lib/bluetooth/hci_lib.h"
#include "lib/mgmt.h"
#include "lib/iso.h"
@@ -20,8 +20,8 @@
#include <glib.h>
-#include "lib/bluetooth.h"
-#include "lib/l2cap.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/l2cap.h"
#include "lib/mgmt.h"
#include "monitor/bt.h"
@@ -26,10 +26,10 @@
#include <poll.h>
#include <sys/socket.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
-#include "lib/hci_lib.h"
-#include "lib/l2cap.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
+#include "lib/bluetooth/hci_lib.h"
+#include "lib/bluetooth/l2cap.h"
/* Defaults */
static bdaddr_t bdaddr;
@@ -30,10 +30,10 @@
#include <sys/ioctl.h>
#include <sys/socket.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
-#include "lib/hci_lib.h"
-#include "lib/l2cap.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
+#include "lib/bluetooth/hci_lib.h"
+#include "lib/bluetooth/l2cap.h"
#include "src/shared/util.h"
#include "monitor/display.h"
@@ -20,12 +20,12 @@
#include <glib.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
-#include "lib/hci_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
+#include "lib/bluetooth/hci_lib.h"
#include "btio/btio.h"
-#include "lib/l2cap.h"
+#include "lib/bluetooth/l2cap.h"
#include "profiles/health/mcap.h"
enum {
@@ -26,7 +26,7 @@
#include "src/shared/shell.h"
#include "src/shared/util.h"
#include "gdbus/gdbus.h"
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/uuid.h"
#include "tools/mesh-gatt/node.h"
@@ -23,11 +23,11 @@
#include <glib.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
-#include "lib/hci_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
+#include "lib/bluetooth/hci_lib.h"
#include "lib/mgmt.h"
-#include "lib/l2cap.h"
+#include "lib/bluetooth/l2cap.h"
#include "monitor/bt.h"
#include "emulator/vhci.h"
@@ -17,7 +17,7 @@
#include <stdbool.h>
#include <inttypes.h>
-#include <lib/bluetooth.h>
+#include <lib/bluetooth/bluetooth.h>
#include "src/shared/shell.h"
#include "tools/mesh/agent.h"
@@ -29,7 +29,7 @@
#include <glib.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/uuid.h"
#include "src/shared/shell.h"
#include "src/shared/util.h"
@@ -24,11 +24,11 @@
#include <glib.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
-#include "lib/hci_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
+#include "lib/bluetooth/hci_lib.h"
#include "lib/mgmt.h"
-#include "lib/l2cap.h"
+#include "lib/bluetooth/l2cap.h"
#include "monitor/bt.h"
#include "emulator/vhci.h"
@@ -15,7 +15,7 @@
#include <getopt.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/mgmt.h"
#include "src/shared/mainloop.h"
@@ -22,8 +22,8 @@
#include <string.h>
#include "parser.h"
-#include "lib/hci.h"
-#include "lib/hci_lib.h"
+#include "lib/bluetooth/hci.h"
+#include "lib/bluetooth/hci_lib.h"
#include "lib/amp.h"
static uint16_t manufacturer = DEFAULT_COMPID;
@@ -24,7 +24,7 @@
#include "parser.h"
#include "sdp.h"
#include "l2cap.h"
-#include "lib/hci.h"
+#include "lib/bluetooth/hci.h"
#include "lib/a2mp.h"
#include "lib/amp.h"
@@ -19,8 +19,8 @@
#include <sys/socket.h>
#include "parser.h"
-#include "lib/hci.h"
-#include "lib/hci_lib.h"
+#include "lib/bluetooth/hci.h"
+#include "lib/bluetooth/hci_lib.h"
#define LMP_U8(frm) (p_get_u8(frm))
#define LMP_U16(frm) (btohs(htons(p_get_u16(frm))))
@@ -16,7 +16,7 @@
#include <sys/time.h>
#include <netinet/in.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "src/shared/util.h"
struct frame {
@@ -28,12 +28,12 @@
#include <sys/socket.h>
#include <sys/stat.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
-#include "lib/hci_lib.h"
-#include "lib/rfcomm.h"
-#include "lib/sdp.h"
-#include "lib/sdp_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
+#include "lib/bluetooth/hci_lib.h"
+#include "lib/bluetooth/rfcomm.h"
+#include "lib/bluetooth/sdp.h"
+#include "lib/bluetooth/sdp_lib.h"
#include "src/shared/util.h"
@@ -20,8 +20,8 @@
#include <glib.h>
-#include "lib/bluetooth.h"
-#include "lib/rfcomm.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/rfcomm.h"
#include "lib/mgmt.h"
#include "monitor/bt.h"
@@ -28,10 +28,10 @@
#include <sys/socket.h>
#include <sys/wait.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
-#include "lib/hci_lib.h"
-#include "lib/rfcomm.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
+#include "lib/bluetooth/hci_lib.h"
+#include "lib/bluetooth/rfcomm.h"
static int rfcomm_raw_tty = 0;
static int auth = 0;
@@ -19,8 +19,8 @@
#include <glib.h>
-#include "lib/bluetooth.h"
-#include "lib/sco.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/sco.h"
#include "lib/mgmt.h"
#include "monitor/bt.h"
@@ -25,8 +25,8 @@
#include <sys/time.h>
#include <sys/socket.h>
-#include "lib/bluetooth.h"
-#include "lib/sco.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/sco.h"
#include "src/shared/util.h"
@@ -26,11 +26,11 @@
#include <sys/socket.h>
#include <netinet/in.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
-#include "lib/hci_lib.h"
-#include "lib/sdp.h"
-#include "lib/sdp_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
+#include "lib/bluetooth/hci_lib.h"
+#include "lib/bluetooth/sdp.h"
+#include "lib/bluetooth/sdp_lib.h"
#include "src/sdp-xml.h"
@@ -20,8 +20,8 @@
#include <glib.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
#include "lib/mgmt.h"
#include "monitor/bt.h"
@@ -30,9 +30,9 @@
#include <sys/param.h>
#include <sys/reboot.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
-#include "lib/hci_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
+#include "lib/bluetooth/hci_lib.h"
#include "tools/hciattach.h"
#ifndef WAIT_ANY
@@ -20,8 +20,8 @@
#include <glib.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
#include "lib/mgmt.h"
#include "monitor/bt.h"
@@ -26,7 +26,7 @@
#include "src/shared/util.h"
#include "src/shared/tester.h"
#include "src/log.h"
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "android/avctp.h"
#include "android/avrcp-lib.h"
@@ -20,7 +20,7 @@
#include <glib.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/uuid.h"
#include "src/shared/util.h"
#include "src/shared/io.h"
@@ -20,7 +20,7 @@
#include <glib.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/uuid.h"
#include "src/shared/util.h"
#include "src/shared/io.h"
@@ -16,9 +16,9 @@
#include <glib.h>
-#include "lib/bluetooth.h"
-#include "lib/hci.h"
-#include "lib/sdp.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/hci.h"
+#include "lib/bluetooth/sdp.h"
#include "src/shared/tester.h"
#include "src/shared/util.h"
#include "src/shared/ad.h"
@@ -22,7 +22,7 @@
#include <glib.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/uuid.h"
#include "src/shared/util.h"
#include "src/shared/att.h"
@@ -23,7 +23,7 @@
#include <glib.h>
#include "src/shared/util.h"
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/uuid.h"
#include "attrib/att.h"
#include "attrib/gattrib.h"
@@ -20,7 +20,7 @@
#include <glib.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/uuid.h"
#include "src/shared/util.h"
@@ -21,8 +21,8 @@
#include "src/shared/util.h"
#include "src/shared/tester.h"
-#include "lib/sdp.h"
-#include "lib/sdp_lib.h"
+#include "lib/bluetooth/sdp.h"
+#include "lib/bluetooth/sdp_lib.h"
static void test_ntoh64(const void *data)
{
@@ -18,7 +18,7 @@
#include <glib.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/mgmt.h"
#include "src/shared/mgmt.h"
@@ -20,7 +20,7 @@
#include <glib.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/uuid.h"
#include "src/shared/util.h"
#include "src/shared/tester.h"
@@ -20,9 +20,9 @@
#include <glib.h>
-#include "lib/bluetooth.h"
-#include "lib/sdp.h"
-#include "lib/sdp_lib.h"
+#include "lib/bluetooth/bluetooth.h"
+#include "lib/bluetooth/sdp.h"
+#include "lib/bluetooth/sdp_lib.h"
#include "src/shared/util.h"
#include "src/shared/tester.h"
@@ -14,7 +14,7 @@
#include <glib.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/uuid.h"
#include "src/shared/tester.h"
@@ -20,7 +20,7 @@
#include <glib.h>
-#include "lib/bluetooth.h"
+#include "lib/bluetooth/bluetooth.h"
#include "lib/uuid.h"
#include "src/shared/util.h"
#include "src/shared/tester.h"