2021-11-04 17:26:41 +00:00
|
|
|
#pragma once
|
|
|
|
|
2022-12-20 12:32:24 +00:00
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdbool.h>
|
2021-11-04 17:26:41 +00:00
|
|
|
|
2022-12-20 12:32:24 +00:00
|
|
|
typedef struct BtKeysStorage BtKeysStorage;
|
2021-11-04 17:26:41 +00:00
|
|
|
|
2022-12-20 12:32:24 +00:00
|
|
|
BtKeysStorage* bt_keys_storage_alloc(const char* keys_storage_path);
|
2022-01-21 17:32:03 +00:00
|
|
|
|
2022-12-20 12:32:24 +00:00
|
|
|
void bt_keys_storage_free(BtKeysStorage* instance);
|
|
|
|
|
|
|
|
void bt_keys_storage_set_file_path(BtKeysStorage* instance, const char* path);
|
|
|
|
|
|
|
|
void bt_keys_storage_set_ram_params(BtKeysStorage* instance, uint8_t* buff, uint16_t size);
|
|
|
|
|
|
|
|
bool bt_keys_storage_load(BtKeysStorage* instance);
|
|
|
|
|
|
|
|
bool bt_keys_storage_update(BtKeysStorage* instance, uint8_t* start_addr, uint32_t size);
|
|
|
|
|
|
|
|
bool bt_keys_storage_delete(BtKeysStorage* instance);
|