move engine to shared lib

This commit is contained in:
2025-03-13 00:09:05 +02:00
parent cf7e577b42
commit d2fcb9a24a
7 changed files with 267 additions and 3 deletions

20
hiisi/hiisi.h Normal file
View File

@@ -0,0 +1,20 @@
#ifndef HIISI_H_
#define HIISI_H_
extern "C" {
struct Engine {
void *module = 0;
int (*init)(void *, int, char**);
int (*event)(void *);
int (*iterate)(void *);
void (*quit)(void *);
};
int init(void *appstate, int argc, char *argv[]);
int event(void *appstate);
int iterate(void *appstate);
void quit(void *appstate);
}
#endif // HIISI_H_