From: Philippe Mathieu-Daudé Date: Fri, 11 Jan 2019 14:08:55 +0000 (+0100) Subject: ui/console: Remove QemuDmaBuf from "qemu/typedefs.h" X-Git-Tag: qemu-xen-4.13.0-rc1~429^2~12 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=dfbb251e9f36b2e2cf2337ba5240cbd59ea35847;p=qemu-xen.git ui/console: Remove QemuDmaBuf from "qemu/typedefs.h" Files requiring QemuDmaBuf already include "ui/console.h". To clean "qemu/typedefs.h", move the declaration to "ui/console.h" (removing the forward declaration). Signed-off-by: Philippe Mathieu-Daudé Signed-off-by: Thomas Huth --- diff --git a/include/qemu/typedefs.h b/include/qemu/typedefs.h index 1ea03d84ee..8bab07bd5d 100644 --- a/include/qemu/typedefs.h +++ b/include/qemu/typedefs.h @@ -82,7 +82,6 @@ typedef struct QBool QBool; typedef struct QDict QDict; typedef struct QEMUBH QEMUBH; typedef struct QemuConsole QemuConsole; -typedef struct QemuDmaBuf QemuDmaBuf; typedef struct QEMUFile QEMUFile; typedef struct QemuLockable QemuLockable; typedef struct QemuMutex QemuMutex; diff --git a/include/ui/console.h b/include/ui/console.h index 853fcf4eb7..c4f497cb8d 100644 --- a/include/ui/console.h +++ b/include/ui/console.h @@ -179,7 +179,7 @@ struct QEMUGLParams { int minor_ver; }; -struct QemuDmaBuf { +typedef struct QemuDmaBuf { int fd; uint32_t width; uint32_t height; @@ -187,7 +187,7 @@ struct QemuDmaBuf { uint32_t fourcc; uint32_t texture; bool y0_top; -}; +} QemuDmaBuf; typedef struct DisplayChangeListenerOps { const char *dpy_name;