xref: /kvmtool/include/kvm/sdl.h (revision 07d52d7721f17a0f59e12773517d7975c3af349e)
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 kvm *kvm);
10 int sdl__exit(struct kvm *kvm);
11 #else
12 static inline void sdl__init(struct kvm *kvm)
13 {
14 	die("SDL support not compiled in. (install the SDL-dev[el] package)");
15 }
16 static inline void sdl__exit(struct kvm *kvm)
17 {
18 	die("SDL support not compiled in. (install the SDL-dev[el] package)");
19 }
20 #endif
21 
22 #endif /* KVM__SDL_H */
23