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>
This commit is contained in:
Philippe Mathieu-Daudé 2022-11-30 14:56:40 +01:00 committed by Paolo Bonzini
parent d1852caab1
commit 3d277871f3
2 changed files with 3 additions and 2 deletions

View File

@ -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 >*/

View File

@ -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;