aboutsummaryrefslogtreecommitdiff
path: root/src/sdl/action.h
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2019-01-16 07:15:26 -0500
committerPaul Duncan <pabs@pablotron.org>2019-01-16 07:15:26 -0500
commitc17f5a5377f959a7e67526e0ae89b329bf99a101 (patch)
treea350ecb2d677a060795fbf20aade2a2c7a5759b6 /src/sdl/action.h
parent19a5965400f9a252adf540050046d2dc3a026d13 (diff)
downloadsok-c17f5a5377f959a7e67526e0ae89b329bf99a101.tar.bz2
sok-c17f5a5377f959a7e67526e0ae89b329bf99a101.zip
solve in background thread
Diffstat (limited to 'src/sdl/action.h')
-rw-r--r--src/sdl/action.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/sdl/action.h b/src/sdl/action.h
index e28f9ce..afe6fd3 100644
--- a/src/sdl/action.h
+++ b/src/sdl/action.h
@@ -2,6 +2,7 @@
#define ACTION_H
#include <SDL.h>
+#include "game-state.h"
typedef enum {
ACTION_NONE,
@@ -16,6 +17,10 @@ typedef enum {
ACTION_UNDO,
ACTION_NEXT,
ACTION_SOLVE,
+ ACTION_SOLVE_CANCEL,
+ ACTION_SOLVE_EVENT_STEP,
+ ACTION_SOLVE_EVENT_FAIL,
+ ACTION_SOLVE_EVENT_DONE,
ACTION_RESET,
ACTION_FULLSCREEN,
ACTION_LAST,
@@ -26,6 +31,10 @@ typedef struct {
uint64_t data;
} action_t;
-action_t get_action(const SDL_Event * const);
+action_t get_action(
+ const game_state_t,
+ const SDL_Event * const,
+ const Uint32
+);
#endif /* ACTION_H */