plugin_state.h 638 B

12345678910111213141516171819202122232425262728
  1. #pragma once
  2. #include <notification/notification.h>
  3. #include <gui/gui.h>
  4. #include <dialogs/dialogs.h>
  5. #include "../services/list/list.h"
  6. #include "../scenes/totp_scenes_enum.h"
  7. #define TOTP_IV_SIZE 16
  8. typedef struct {
  9. Scene current_scene;
  10. void* current_scene_state;
  11. bool changing_scene;
  12. NotificationApp* notification;
  13. DialogsApp* dialogs;
  14. Gui* gui;
  15. float timezone_offset;
  16. ListNode* tokens_list;
  17. bool token_list_loaded;
  18. uint8_t tokens_count;
  19. uint8_t* crypto_verify_data;
  20. uint8_t crypto_verify_data_length;
  21. uint8_t iv[TOTP_IV_SIZE];
  22. uint8_t base_iv[TOTP_IV_SIZE];
  23. } PluginState;