xref: /kvmtool/include/kvm/gtk3.h (revision 7bcceb95fd5435ef6f27c2f4caff134b9060257e)
1 #ifndef KVM__GTK3_H
2 #define KVM__GTK3_H
3 
4 #include "kvm/util.h"
5 
6 struct framebuffer;
7 
8 #ifdef CONFIG_HAS_GTK3
9 int kvm_gtk_init(struct kvm *kvm);
10 int kvm_gtk_exit(struct kvm *kvm);
11 #else
kvm_gtk_init(struct kvm * kvm)12 static inline int kvm_gtk_init(struct kvm *kvm)
13 {
14 	if (kvm->cfg.gtk)
15 		die("GTK3 support not compiled in. (install the gtk3-devel or libgtk3.0-dev package)");
16 
17 	return 0;
18 }
kvm_gtk_exit(struct kvm * kvm)19 static inline int kvm_gtk_exit(struct kvm *kvm)
20 {
21 	if (kvm->cfg.gtk)
22 		die("GTK3 support not compiled in. (install the gtk3-devel or libgtk3.0-dev package)");
23 
24 	return 0;
25 }
26 #endif
27 
28 #endif /* KVM__GTK3_H */
29