diff options
author | Nicholas Tay <nick@windblume.net> | 2022-05-10 00:40:10 +1000 |
---|---|---|
committer | Nicholas Tay <nick@windblume.net> | 2022-05-10 00:47:38 +1000 |
commit | 6a1e6a7d6b6a3d987f2fccb3c06f4f5da071f504 (patch) | |
tree | 3899a31897c01323fb5d896b08412aa45e939885 /board/board.h | |
parent | 5270088f730a7e30155a642dcd5c4e9a80055d7a (diff) | |
download | clak-6a1e6a7d6b6a3d987f2fccb3c06f4f5da071f504.tar.gz clak-6a1e6a7d6b6a3d987f2fccb3c06f4f5da071f504.tar.bz2 clak-6a1e6a7d6b6a3d987f2fccb3c06f4f5da071f504.zip |
Dynamic load boards as DLL (windows only for now)
The .h files are pretty weird, should look at other C projects to see
how they load plugins. This function pointer business with typedefs is
kinda weird, not sure where they should live.
Diffstat (limited to '')
-rw-r--r-- | board/board.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/board/board.h b/board/board.h new file mode 100644 index 0000000..18f6afa --- /dev/null +++ b/board/board.h @@ -0,0 +1,12 @@ +#ifndef CLAK_BOARD_H_ +#define CLAK_BOARD_H_ + +#include <stdbool.h> + +#include "../clak.h" + +typedef void (*fn_board_init)(fn_sound_play sp); +typedef void (*fn_board_on_down)(void); +typedef void (*fn_board_on_up)(void); + +#endif /* CLAK_BOARD_H_ */
\ No newline at end of file |