From 3840f8429043a9082696db99a7ccbc36cb72224c Mon Sep 17 00:00:00 2001 From: "Michael S. Tsirkin" Date: Mon, 23 Jun 2014 10:29:07 +0300 Subject: console: move chardev declarations to sysemu/char.h move generic chardev APIs to sysemu/char.h, to make them available to callers which can not depend on the whole of ui/console.h. This fixes a build error on systems without pixman-devel: ./configure --disable-tools --disable-docs --target-list=arm-linux-user ... pixman none ... make ... In file included from /data/home/nchip/linaro/qemu/include/ui/console.h:4:0, from /data/home/nchip/linaro/qemu/stubs/vc-init.c:2: /data/home/nchip/linaro/qemu/include/ui/qemu-pixman.h:14:20: fatal error: pixman.h: No such file or directory #include ^ compilation terminated. Reported-by: Riku Voipio Tested-by: Riku Voipio Signed-off-by: Michael S. Tsirkin Message-id: 1403508500-32691-1-git-send-email-mst@redhat.com Signed-off-by: Peter Maydell --- include/sysemu/char.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/sysemu/char.h') diff --git a/include/sysemu/char.h b/include/sysemu/char.h index 3b835f6fb3..672ed39a31 100644 --- a/include/sysemu/char.h +++ b/include/sysemu/char.h @@ -350,4 +350,9 @@ CharDriverState *qemu_chr_open_msmouse(void); /* baum.c */ CharDriverState *chr_baum_init(void); +/* console.c */ +typedef CharDriverState *(VcHandler)(ChardevVC *vc); + +void register_vc_handler(VcHandler *handler); +CharDriverState *vc_init(ChardevVC *vc); #endif -- cgit v1.2.1