Update
[debian-dgen.git] / romload.h
blob391be17a315e534778addf30210b36ebac7d1325
1 #ifndef ROMLOAD_H_
2 #define ROMLOAD_H_
4 #include <stddef.h>
5 #include <stdint.h>
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
15 ROMLOAD_DECL_BEGIN__
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);
21 ROMLOAD_DECL_END__
23 #endif /* ROMLOAD_H_ */