By using `SETTINGS_STATIC_HANDLER_DEFINE_WITH_CPRIO` we can ensure that BT subsystems always get loaded after BT, and BT Mesh after both of them. This solves the host having to register a GATT service in a delayed manner, as we are sure to now register the GATT service after sc_commit sets `SC_LOAD`. Signed-off-by: Kyra Lengfeld <kyra.lengfeld@nordicsemi.no>
19 lines
453 B
C
19 lines
453 B
C
/* Copyright (c) 2024 Nordic Semiconductor ASA
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
#ifndef BT_SETTINGS_COMMIT_H_
|
|
#define BT_SETTINGS_COMMIT_H_
|
|
|
|
/**
|
|
* @brief Bluetooth Settings Commit Priorities
|
|
*
|
|
* Enum of commit priorities for Bluetooth settings handlers.
|
|
* Lower values indicate higher priority.
|
|
*/
|
|
enum bt_settings_commit_priority {
|
|
BT_SETTINGS_CPRIO_0,
|
|
BT_SETTINGS_CPRIO_1,
|
|
BT_SETTINGS_CPRIO_2,
|
|
};
|
|
|
|
#endif /* BT_SETTINGS_COMMIT_H_ */
|