mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-08-21 04:46:51 +00:00
07d52d7721
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>
23 lines
332 B
C
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 */
|