add yaze_c lib top level bindings

This commit is contained in:
scawful
2024-08-06 21:26:41 -04:00
parent 51eb640192
commit 4013f30663
3 changed files with 77 additions and 1 deletions

27
src/yaze.h Normal file
View File

@@ -0,0 +1,27 @@
#ifndef YAZE_H
#define YAZE_H
#include <cstdint>
#ifdef __cplusplus
extern "C" {
#endif
void yaze_initialize(void);
void yaze_cleanup(void);
typedef struct Rom Rom;
struct Rom {
const char* filename;
const uint8_t* data;
};
Rom load_rom(const char* filename);
#ifdef __cplusplus
}
#endif
#endif // YAZE_H