diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2022-11-30 14:56:40 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2023-01-06 00:50:32 +0100 |
commit | 3d277871f39d4de42f56b7b0cef5721e525b2d31 (patch) | |
tree | 62a3cf265b59cb82d6461d6771c37b2125e22a4e /include/qemu | |
parent | d1852caab131ea898134fdcea8c14bc2ee75fbe9 (diff) | |
download | qemu-3d277871f39d4de42f56b7b0cef5721e525b2d31.zip qemu-3d277871f39d4de42f56b7b0cef5721e525b2d31.tar.gz qemu-3d277871f39d4de42f56b7b0cef5721e525b2d31.tar.bz2 |
typedefs: Forward-declare AccelState
Forward-declare AccelState in "qemu/typedefs.h" so structures
using a reference of it (like MachineState in "hw/boards.h")
don't have to include "qemu/accel.h".
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Message-Id: <20221130135641.85328-2-philmd@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/qemu')
-rw-r--r-- | include/qemu/accel.h | 4 | ||||
-rw-r--r-- | include/qemu/typedefs.h | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/include/qemu/accel.h b/include/qemu/accel.h index ce47476..e84db2e 100644 --- a/include/qemu/accel.h +++ b/include/qemu/accel.h @@ -26,10 +26,10 @@ #include "qom/object.h" #include "exec/hwaddr.h" -typedef struct AccelState { +struct AccelState { /*< private >*/ Object parent_obj; -} AccelState; +}; typedef struct AccelClass { /*< private >*/ diff --git a/include/qemu/typedefs.h b/include/qemu/typedefs.h index 688408e..073abab 100644 --- a/include/qemu/typedefs.h +++ b/include/qemu/typedefs.h @@ -21,6 +21,7 @@ * Incomplete struct types * Please keep this list in case-insensitive alphabetical order. */ +typedef struct AccelState AccelState; typedef struct AdapterInfo AdapterInfo; typedef struct AddressSpace AddressSpace; typedef struct AioContext AioContext; |