u2f_view.h 474 B

1234567891011121314151617181920212223
  1. #pragma once
  2. #include <gui/view.h>
  3. typedef struct U2fView U2fView;
  4. typedef void (*U2fOkCallback)(InputType type, void* context);
  5. typedef enum {
  6. U2fMsgNone,
  7. U2fMsgRegister,
  8. U2fMsgAuth,
  9. U2fMsgError,
  10. } U2fViewMsg;
  11. U2fView* u2f_view_alloc();
  12. void u2f_view_free(U2fView* u2f);
  13. View* u2f_view_get_view(U2fView* u2f);
  14. void u2f_view_set_ok_callback(U2fView* u2f, U2fOkCallback callback, void* context);
  15. void u2f_view_set_state(U2fView* u2f, U2fViewMsg msg);