mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-08-26 08:07:00 +00:00
7bcceb95fd
It's barely usable but it isn't getting any better sitting alone in a private git branch. You can start a new VM with the GTK UI like this: ./vm run --gtk It's rough around the edges: - Red and blue color channels are inverted. - Some keys do not work. - Mouse does not work. - GTK assertion failure pops up on shutdown. but I'm sure there's someone out there that's just dying to improve the user experience. Cc: Asias He <asias.hejun@gmail.com> Cc: Cyrill Gorcunov <gorcunov@openvz.org> Cc: Ingo Molnar <mingo@kernel.org> Cc: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
29 lines
563 B
C
29 lines
563 B
C
#ifndef KVM__GTK3_H
|
|
#define KVM__GTK3_H
|
|
|
|
#include "kvm/util.h"
|
|
|
|
struct framebuffer;
|
|
|
|
#ifdef CONFIG_HAS_GTK3
|
|
int kvm_gtk_init(struct kvm *kvm);
|
|
int kvm_gtk_exit(struct kvm *kvm);
|
|
#else
|
|
static inline int kvm_gtk_init(struct kvm *kvm)
|
|
{
|
|
if (kvm->cfg.gtk)
|
|
die("GTK3 support not compiled in. (install the gtk3-devel or libgtk3.0-dev package)");
|
|
|
|
return 0;
|
|
}
|
|
static inline int kvm_gtk_exit(struct kvm *kvm)
|
|
{
|
|
if (kvm->cfg.gtk)
|
|
die("GTK3 support not compiled in. (install the gtk3-devel or libgtk3.0-dev package)");
|
|
|
|
return 0;
|
|
}
|
|
#endif
|
|
|
|
#endif /* KVM__GTK3_H */
|