Mercurial > molko
comparison libmlk-core/core/game.h @ 292:08ab73b32832
misc: add extern "C" {} blocks for C++ friends
author | David Demelier <markand@malikania.fr> |
---|---|
date | Fri, 05 Mar 2021 10:08:09 +0100 |
parents | 60a214ec1ab4 |
children | 196264679079 |
comparison
equal
deleted
inserted
replaced
291:5d8700074dd7 | 292:08ab73b32832 |
---|---|
19 #ifndef MOLKO_CORE_GAME_H | 19 #ifndef MOLKO_CORE_GAME_H |
20 #define MOLKO_CORE_GAME_H | 20 #define MOLKO_CORE_GAME_H |
21 | 21 |
22 #include <stdbool.h> | 22 #include <stdbool.h> |
23 | 23 |
24 #include "core.h" | |
24 #include "inhibit.h" | 25 #include "inhibit.h" |
25 | 26 |
26 struct state; | 27 struct state; |
27 | 28 |
28 union event; | 29 union event; |
35 struct state *state; | 36 struct state *state; |
36 struct state *state_next; | 37 struct state *state_next; |
37 }; | 38 }; |
38 | 39 |
39 extern struct game game; | 40 extern struct game game; |
41 | |
42 CORE_BEGIN_DECLS | |
40 | 43 |
41 void | 44 void |
42 game_switch(struct state *state, bool quick); | 45 game_switch(struct state *state, bool quick); |
43 | 46 |
44 struct state * | 47 struct state * |
57 game_loop(void); | 60 game_loop(void); |
58 | 61 |
59 void | 62 void |
60 game_quit(void); | 63 game_quit(void); |
61 | 64 |
65 CORE_END_DECLS | |
66 | |
62 #endif /* !MOLKO_CORE_GAME_H */ | 67 #endif /* !MOLKO_CORE_GAME_H */ |