Remove circular dependencies between libs, use callback function pointers instead
[mercenary-reloaded.git] / src / libsdl / sdl.h
index dab62c2..08eb7fc 100644 (file)
@@ -1,9 +1,7 @@
 #include <SDL2/SDL.h>
 
-int init_sdl(const char *progname, int width, int height, int sound_samplerate, int sound_chunk);
+int init_sdl(const char *progname, int width, int height, int sound_samplerate, int sound_chunk, void (*keyboard)(int down, SDL_Keycode sym), void (*audio)(float *data, int len));
 int event_sdl(void);
 void swap_sdl(void);
 void exit_sdl(void);
-void audio_sdl(float *data, int len);
-void keyboard_sdl(int down, SDL_Keycode sym);