aboutsummaryrefslogtreecommitdiff
path: root/src/text/action.h
blob: 77f0e9ce18ea07776bc2d9f8301b42acb5d7bee0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef ACTION_H
#define ACTION_H

#include <stdint.h>

typedef enum {
  ACTION_NONE,
  ACTION_QUIT,
  ACTION_MOVE,
  ACTION_WARP,
  ACTION_UNDO,
  ACTION_NEXT,
  ACTION_SOLVE,
  ACTION_RESET,
  ACTION_LAST,
} action_type_t;

typedef struct {
  action_type_t type;
  uint64_t data;
} action_t;

action_t get_action(void);

#endif /* ACTION_H */