Skip to content

Commit 2af45d1

Browse files
aescolardkalowsk
authored andcommitted
subsys/bluetooth/host/keys.h: Add include guard and required include
This header requires bluetooth.h but was not including it itself. Due to this we had 2 tests failing to build. Let's just include the dependencies to this header instead of relaying on users including the dependencies dependencies in the right order. Also, let's add an include guard as in a test this header was included twice leading to weird build errors. Signed-off-by: Alberto Escolar Piedras <[email protected]>
1 parent 14e870d commit 2af45d1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

subsys/bluetooth/host/keys.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
* SPDX-License-Identifier: Apache-2.0
77
*/
88

9+
#ifndef ZEPHYR_SUBSYS_BLUETOOTH_HOST_KEYS_H_
10+
#define ZEPHYR_SUBSYS_BLUETOOTH_HOST_KEYS_H_
11+
12+
#include <zephyr/bluetooth/bluetooth.h>
13+
914
/** @cond INTERNAL_HIDDEN */
1015

1116
enum bt_keys_type {
@@ -233,3 +238,5 @@ void bt_keys_link_key_update_usage(const bt_addr_t *addr);
233238
void bt_keys_show_sniffer_info(struct bt_keys *keys, void *data);
234239

235240
/** @endcond */
241+
242+
#endif /* ZEPHYR_SUBSYS_BLUETOOTH_HOST_KEYS_H_ */

0 commit comments

Comments
 (0)