2022-10-12 02:01:37 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <flipper_format/flipper_format.h>
|
|
|
|
#include <furi.h>
|
|
|
|
#include "../../types/plugin_state.h"
|
|
|
|
#include "../../types/token_info.h"
|
|
|
|
#include "constants.h"
|
|
|
|
|
2022-10-21 19:56:58 +00:00
|
|
|
typedef enum {
|
|
|
|
TokenLoadingResultSuccess,
|
|
|
|
TokenLoadingResultWarning,
|
|
|
|
TokenLoadingResultError
|
|
|
|
} TokenLoadingResult;
|
|
|
|
|
2022-10-12 02:01:37 +00:00
|
|
|
Storage* totp_open_storage();
|
|
|
|
void totp_close_storage();
|
|
|
|
FlipperFormat* totp_open_config_file(Storage* storage);
|
|
|
|
void totp_close_config_file(FlipperFormat* file);
|
2022-10-29 00:33:02 +00:00
|
|
|
void totp_full_save_config_file(PluginState* const plugin_state);
|
2022-10-12 02:01:37 +00:00
|
|
|
void totp_config_file_load_base(PluginState* const plugin_state);
|
2022-10-21 19:56:58 +00:00
|
|
|
TokenLoadingResult totp_config_file_load_tokens(PluginState* const plugin_state);
|
2022-10-29 00:33:02 +00:00
|
|
|
void totp_config_file_save_new_token(TokenInfo* token_info);
|
2022-10-13 13:57:08 +00:00
|
|
|
void totp_config_file_update_timezone_offset(float new_timezone_offset);
|