mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-25 06:13:14 +03:00
8ec1c74baf
* SavedStruct: Replace saved_struct_get_payload_size with saved_struct_get_metadata This new function can obtain the magic value, version and payload size all at once. This makes the function useful e.g. for backwards compatibility. * SavedStruct: const-qualify saved_struct_save * Toolbox: add saved struct documentation Co-authored-by: あく <alleteam@gmail.com>
22 lines
312 B
C
22 lines
312 B
C
#pragma once
|
|
|
|
#include "bt_settings_filename.h"
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct {
|
|
bool enabled;
|
|
} BtSettings;
|
|
|
|
bool bt_settings_load(BtSettings* bt_settings);
|
|
|
|
bool bt_settings_save(const BtSettings* bt_settings);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif |