common.h 356 B

123456789101112
  1. #pragma once
  2. #include <stdint.h>
  3. #include "../types/token_info.h"
  4. typedef bool (*TOTP_AUTOMATION_KEY_HANDLER)(uint16_t key);
  5. void totp_type_code_worker_execute_automation(
  6. TOTP_AUTOMATION_KEY_HANDLER key_press_fn,
  7. TOTP_AUTOMATION_KEY_HANDLER key_release_fn,
  8. const char* string,
  9. uint8_t string_length,
  10. TokenAutomationFeature features);