xref: /kvmtool/include/kvm/sdl.h (revision 48d9e01a8cfb8541c32c1dd46fa9d34fc687b031)
1 #ifndef KVM__SDL_H
2 #define KVM__SDL_H
3 
4 #include "kvm/util.h"
5 
6 struct framebuffer;
7 
8 #ifdef CONFIG_HAS_SDL
9 int sdl__init(struct framebuffer *fb);
10 int sdl__exit(struct framebuffer *fb);
11 #else
12 static inline void sdl__init(struct framebuffer *fb)
13 {
14 	die("SDL support not compiled in. (install the SDL-dev[el] package)");
15 }
16 static inline void sdl__exit(struct framebuffer *fb)
17 {
18 	die("SDL support not compiled in. (install the SDL-dev[el] package)");
19 }
20 #endif
21 
22 #endif /* KVM__SDL_H */
23