aboutsummaryrefslogtreecommitdiff
path: root/clak.h
diff options
context:
space:
mode:
authorNicholas Tay <nick@windblume.net>2022-05-11 19:22:08 +1000
committerNicholas Tay <nick@windblume.net>2022-05-11 19:22:08 +1000
commit2fee408d6fe0964e245dc0bae90027baa13b159a (patch)
tree8ff7cd648f2e9331b6e86ac3dfeb7c4e07df8f99 /clak.h
parent6a1e6a7d6b6a3d987f2fccb3c06f4f5da071f504 (diff)
downloadclak-2fee408d6fe0964e245dc0bae90027baa13b159a.tar.gz
clak-2fee408d6fe0964e245dc0bae90027baa13b159a.tar.bz2
clak-2fee408d6fe0964e245dc0bae90027baa13b159a.zip
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.
Diffstat (limited to '')
-rw-r--r--clak.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/clak.h b/clak.h
deleted file mode 100644
index c700a12..0000000
--- a/clak.h
+++ /dev/null
@@ -1,8 +0,0 @@
-#ifndef CLAK_H_
-#define CLAK_H_
-
-#include <stdbool.h>
-
-typedef void (*fn_sound_play)(unsigned char *buffer);
-
-#endif /* CLAK_H_ */ \ No newline at end of file