aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2021-04-30 13:35:46 +0200
committerGerd Hoffmann <kraxel@redhat.com>2021-05-10 13:55:28 +0200
commit48ecfbf12c1f51281aaabaf8e03494291a18862c (patch)
tree15840c5c2506cae5570d7fe3cf5731e85e79eb24 /include
parent17cdac0b51bc4ad7a68c3e5e0b1718729b74d512 (diff)
downloadqemu-48ecfbf12c1f51281aaabaf8e03494291a18862c.zip
qemu-48ecfbf12c1f51281aaabaf8e03494291a18862c.tar.gz
qemu-48ecfbf12c1f51281aaabaf8e03494291a18862c.tar.bz2
modules: add have_vga
Introduce a symbol which can be used to prevent display modules which need vga support being loaded into system emulators with CONFIG_VGA=n. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-id: 20210430113547.1816178-1-kraxel@redhat.com Message-Id: <20210430113547.1816178-16-kraxel@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/hw/display/vga.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/hw/display/vga.h b/include/hw/display/vga.h
index ca0003d..5f7825e 100644
--- a/include/hw/display/vga.h
+++ b/include/hw/display/vga.h
@@ -11,6 +11,12 @@
#include "exec/hwaddr.h"
+/*
+ * modules can reference this symbol to avoid being loaded
+ * into system emulators without vga support
+ */
+extern bool have_vga;
+
enum vga_retrace_method {
VGA_RETRACE_DUMB,
VGA_RETRACE_PRECISE