You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
842 B

  1. #ifndef _UNLOCK_INDICATOR_H
  2. #define _UNLOCK_INDICATOR_H
  3. typedef enum {
  4. STATE_STARTED = 0, /* default state */
  5. STATE_KEY_PRESSED = 1, /* key was pressed, show unlock indicator */
  6. STATE_KEY_ACTIVE = 2, /* a key was pressed recently, highlight part
  7. of the unlock indicator. */
  8. STATE_BACKSPACE_ACTIVE = 3 /* backspace was pressed recently, highlight
  9. part of the unlock indicator in red. */
  10. } unlock_state_t;
  11. typedef enum {
  12. STATE_PAM_IDLE = 0, /* no PAM interaction at the moment */
  13. STATE_PAM_VERIFY = 1, /* currently verifying the password via PAM */
  14. STATE_PAM_WRONG = 2 /* the password was wrong */
  15. } pam_state_t;
  16. xcb_pixmap_t draw_image(uint32_t* resolution);
  17. void redraw_screen(void);
  18. void clear_indicator(void);
  19. #endif