xref: /kvmtool/include/kvm/sdl.h (revision 2d0c904c88c7e819fdf3fac2306304d872e4dec6)
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
sdl__init(struct kvm * kvm)12 static inline int sdl__init(struct kvm *kvm)
13 {
14 	if (kvm->cfg.sdl)
15 		die("SDL support not compiled in. (install the SDL-dev[el] package)");
16 
17 	return 0;
18 }
sdl__exit(struct kvm * kvm)19 static inline int sdl__exit(struct kvm *kvm)
20 {
21 	if (kvm->cfg.sdl)
22 		die("SDL support not compiled in. (install the SDL-dev[el] package)");
23 
24 	return 0;
25 }
26 #endif
27 
28 #endif /* KVM__SDL_H */
29