config.h 671 B

12345678910111213141516171819
  1. #ifndef _TOTP_CONFIG_FILE_H_
  2. #define _TOTP_CONFIG_FILE_H_
  3. #include <flipper_format/flipper_format.h>
  4. #include <furi.h>
  5. #include "../../types/plugin_state.h"
  6. #include "../../types/token_info.h"
  7. #include "constants.h"
  8. Storage* totp_open_storage();
  9. void totp_close_storage();
  10. FlipperFormat* totp_open_config_file(Storage* storage);
  11. void totp_close_config_file(FlipperFormat* file);
  12. void totp_full_save_config_file(PluginState* const plugin_state);
  13. void totp_config_file_load_base(PluginState* const plugin_state);
  14. void totp_config_file_load_tokens(PluginState* const plugin_state);
  15. void totp_config_file_save_new_token(FlipperFormat* file, TokenInfo* token_info);
  16. #endif