Skip to content

Commit d354179

Browse files
ahmedmoheb-nordiccarlescufi
authored andcommitted
include: Add missed 'zephyr' prefix while including header files
Add missed 'zephyr' prefix to files paths while including. Also, remove that paths from libraries include paths to generate compilation error if shortened path is used. Signed-off-by: Ahmed Moheb <[email protected]>
1 parent 2fa689b commit d354179

File tree

7 files changed

+6
-8
lines changed

7 files changed

+6
-8
lines changed

tests/bluetooth/host/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ add_library(host_mocks STATIC
1010
target_include_directories(host_mocks PUBLIC
1111
${ZEPHYR_BASE}/subsys/bluetooth
1212
${ZEPHYR_BASE}/subsys/bluetooth/host
13-
${ZEPHYR_BASE}/include/zephyr/bluetooth
1413
${ZEPHYR_BASE}/tests/bluetooth/host
1514
)
1615

tests/bluetooth/host/host_mocks/print_utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
#include <zephyr/kernel.h>
8-
#include <addr.h>
8+
#include <zephyr/bluetooth/addr.h>
99

1010
const char *bt_addr_str_real(const bt_addr_t *addr);
1111
const char *bt_addr_le_str_real(const bt_addr_le_t *addr);

tests/bluetooth/host/keys/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ target_include_directories(mocks PUBLIC
1919
${ZEPHYR_BASE}/tests/bluetooth/host
2020
${ZEPHYR_BASE}/subsys/bluetooth
2121
${ZEPHYR_BASE}/subsys/bluetooth/host
22-
${ZEPHYR_BASE}/include/zephyr/bluetooth
2322
)
2423

2524
target_link_libraries(mocks PRIVATE test_interface)

tests/bluetooth/host/keys/bt_keys_foreach_bond/src/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
*/
66

77
#include <zephyr/kernel.h>
8-
#include <bluetooth/bluetooth.h>
9-
#include <bluetooth/addr.h>
8+
#include <zephyr/bluetooth/bluetooth.h>
9+
#include <zephyr/bluetooth/addr.h>
1010
#include <host/keys.h>
1111
#include "mocks/keys_help_utils.h"
1212
#include "testing_common_defs.h"

tests/bluetooth/host/keys/bt_keys_foreach_bond/src/test_suite_foreach_bond_invalid_inputs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
#include <zephyr/kernel.h>
8-
#include <bluetooth/bluetooth.h>
8+
#include <zephyr/bluetooth/bluetooth.h>
99
#include "host_mocks/assert.h"
1010
#include "mocks/keys_help_utils.h"
1111

tests/bluetooth/host/keys/bt_keys_foreach_type/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
#include <zephyr/kernel.h>
8-
#include <bluetooth/bluetooth.h>
8+
#include <zephyr/bluetooth/bluetooth.h>
99
#include <host/keys.h>
1010
#include "mocks/keys_help_utils.h"
1111
#include "testing_common_defs.h"

tests/bluetooth/host/keys/bt_keys_foreach_type/src/test_suite_foreach_type_invalid_inputs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
#include <zephyr/kernel.h>
8-
#include <bluetooth/bluetooth.h>
8+
#include <zephyr/bluetooth/bluetooth.h>
99
#include <host/keys.h>
1010
#include "host_mocks/assert.h"
1111
#include "mocks/keys_help_utils.h"

0 commit comments

Comments
 (0)