Files
Sasha Levin 07d52d7721 kvm tools: ui improvements
Move the vesa initialization logic into sdl__init() and vnc__init(), builtin-run
shouldn't have to know about the conditions for initializing vesa on it's own.

Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
2015-06-01 16:39:53 +01:00

23 lines
332 B
C

#ifndef KVM__VNC_H
#define KVM__VNC_H
#include "kvm/kvm.h"
struct framebuffer;
#ifdef CONFIG_HAS_VNCSERVER
int vnc__init(struct kvm *kvm);
int vnc__exit(struct kvm *kvm);
#else
static inline int vnc__init(struct kvm *kvm)
{
return 0;
}
static inline int vnc__exit(struct kvm *kvm)
{
return 0;
}
#endif
#endif /* KVM__VNC_H */