2021-11-04 20:26:41 +03:00
|
|
|
#pragma once
|
|
|
|
|
2022-12-20 15:32:24 +03:00
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdbool.h>
|
2021-11-04 20:26:41 +03:00
|
|
|
|
2022-12-20 15:32:24 +03:00
|
|
|
typedef struct BtKeysStorage BtKeysStorage;
|
2021-11-04 20:26:41 +03:00
|
|
|
|
2022-12-20 15:32:24 +03:00
|
|
|
BtKeysStorage* bt_keys_storage_alloc(const char* keys_storage_path);
|
2022-01-21 20:32:03 +03:00
|
|
|
|
2022-12-20 15:32:24 +03: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);
|