aboutsummaryrefslogtreecommitdiff
path: root/src/text/action.h
blob: d77b3ef89ae59bc1d5812388507fdfc078574cb6 (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
#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_LAST,
} action_type_t;

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

action_t get_action(void);

#endif /* ACTION_H */