aboutsummaryrefslogtreecommitdiff
path: root/platform (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Improve plugin loading architectureNicholas Tay2022-05-112-16/+11
| | | | | | | | | | | | | 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.
* Dynamic load boards as DLL (windows only for now)Nicholas Tay2022-05-102-0/+43
| | | | | | 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.
* Split out platform-specific code for WindowsNicholas Tay2022-05-072-0/+90
Not sure if I'm really doing it in the best way possible. Feels a bit weird that some place assumes the existence of other functions.