From 2fee408d6fe0964e245dc0bae90027baa13b159a Mon Sep 17 00:00:00 2001 From: Nicholas Tay Date: Wed, 11 May 2022 19:22:08 +1000 Subject: Improve plugin loading architecture This should be better, maybe the variable names could be better though. Init is more extensible, we take in a 'board_data' struct on the plugin end that has everything it needs (mainly function pointers for now). Then, a 'board' struct is given back to the main Clak runtime, with everything it needs to know (again, mainly function pointers). It is a bit weird that the board is not stored with Clak but as a pointer to the dynamically loaded bit, but not sure. --- board/board.c | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 board/board.c (limited to 'board/board.c') diff --git a/board/board.c b/board/board.c deleted file mode 100644 index 0410aef..0000000 --- a/board/board.c +++ /dev/null @@ -1,8 +0,0 @@ -#include "board.h" - -static fn_sound_play sound_play; - -void board_init(fn_sound_play sp) -{ - sound_play = sp; -} \ No newline at end of file -- cgit