summaryrefslogtreecommitdiff
path: root/emu/bus.h
diff options
context:
space:
mode:
Diffstat (limited to 'emu/bus.h')
-rw-r--r--emu/bus.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/emu/bus.h b/emu/bus.h
index c1866cb..e39caae 100644
--- a/emu/bus.h
+++ b/emu/bus.h
@@ -3,6 +3,10 @@
#include "device.h"
+#ifdef WITH_GUI
+#include <SDL.h>
+#endif
+
enum {
MAX_NOF_DEVICES = 5
};
@@ -24,6 +28,9 @@ void bus_register( bus_t *bus, device_t *device, uint16_t from, uint16_t to );
uint8_t bus_read( void *obj, uint16_t addr );
void bus_write( void *obj, uint16_t addr, uint8_t data );
+#ifdef WITH_GUI
+void bus_draw( void *obj, SDL_Renderer *renderer );
+#endif
void bus_deinit( void *obj );
#endif