1 #ifndef ROMLOAD_H_
2 #define ROMLOAD_H_
3 
4 #include <stddef.h>
5 #include <stdint.h>
6 
7 #ifdef __cplusplus
8 #define ROMLOAD_DECL_BEGIN__ extern "C" {
9 #define ROMLOAD_DECL_END__ }
10 #else
11 #define ROMLOAD_DECL_BEGIN__
12 #define ROMLOAD_DECL_END__
13 #endif
14 
15 ROMLOAD_DECL_BEGIN__
16 
17 extern uint8_t *load_rom(size_t *rom_size, const char *name);
18 extern void unload_rom(uint8_t *rom);
19 extern void set_rom_path(const char *path);
20 
21 ROMLOAD_DECL_END__
22 
23 #endif /* ROMLOAD_H_ */
24