]> git.proxmox.com Git - mirror_qemu.git/blame - include/qemu/typedefs.h
qapi/machine: remove types from typedefs.h
[mirror_qemu.git] / include / qemu / typedefs.h
CommitLineData
394e1bb7
EH
1#ifndef QEMU_TYPEDEFS_H
2#define QEMU_TYPEDEFS_H
3
2a28720d
MA
4/*
5 * This header is for selectively avoiding #include just to get a
6 * typedef name.
7 *
8 * Declaring a typedef name in its "obvious" place can result in
9 * inclusion cycles, in particular for complete struct and union
10 * types that need more types for their members. It can also result
11 * in headers pulling in many more headers, slowing down builds.
12 *
13 * You can break such cycles and unwanted dependencies by declaring
14 * the typedef name here.
15 *
16 * For struct types used in only a few headers, judicious use of the
17 * struct tag instead of the typedef name is commonly preferable.
18 */
394e1bb7 19
2a28720d
MA
20/*
21 * Incomplete struct types
22 * Please keep this list in case-insensitive alphabetical order.
23 */
f861b3f3 24typedef struct AccelCPUState AccelCPUState;
3d277871 25typedef struct AccelState AccelState;
64baadc2 26typedef struct AdapterInfo AdapterInfo;
b421d9c6 27typedef struct AddressSpace AddressSpace;
64baadc2 28typedef struct AioContext AioContext;
0f8d656b 29typedef struct Aml Aml;
b36e239e 30typedef struct ArchCPU ArchCPU;
9a3f5cf1 31typedef struct BdrvDirtyBitmap BdrvDirtyBitmap;
dc162c8e 32typedef struct BdrvDirtyBitmapIter BdrvDirtyBitmapIter;
26f54e9a 33typedef struct BlockBackend BlockBackend;
281d22d8 34typedef struct BlockBackendRootState BlockBackendRootState;
394e1bb7 35typedef struct BlockDriverState BlockDriverState;
64baadc2
DDAG
36typedef struct BusClass BusClass;
37typedef struct BusState BusState;
0ec7b3e7 38typedef struct Chardev Chardev;
ad140dad 39typedef struct Clock Clock;
f91f9f25 40typedef struct ConfidentialGuestSupport ConfidentialGuestSupport;
32857f4d 41typedef struct CPUAddressSpace CPUAddressSpace;
1ea4a06a 42typedef struct CPUArchState CPUArchState;
c0061471 43typedef struct CPUPluginState CPUPluginState;
a976a99a 44typedef struct CPUJumpCache CPUJumpCache;
b23197f9 45typedef struct CPUState CPUState;
af803a4f 46typedef struct CPUTLBEntryFull CPUTLBEntryFull;
2988cbea 47typedef struct DeviceState DeviceState;
8deaf12c 48typedef struct DirtyBitmapSnapshot DirtyBitmapSnapshot;
394e1bb7 49typedef struct DisplayChangeListener DisplayChangeListener;
64baadc2 50typedef struct DriveInfo DriveInfo;
38ce1ebf 51typedef struct DumpState DumpState;
da34e65c 52typedef struct Error Error;
64baadc2 53typedef struct EventNotifier EventNotifier;
02d9651d 54typedef struct FlatView FlatView;
64baadc2 55typedef struct FWCfgState FWCfgState;
38ce1ebf 56typedef struct GraphicHwOps GraphicHwOps;
7969dd91 57typedef struct HostMemoryBackend HostMemoryBackend;
a5c82852 58typedef struct I2CBus I2CBus;
64baadc2 59typedef struct I2SCodec I2SCodec;
a98c370c 60typedef struct IOMMUMemoryRegion IOMMUMemoryRegion;
394e1bb7
EH
61typedef struct ISABus ISABus;
62typedef struct ISADevice ISADevice;
5484f30b 63typedef struct IsaDma IsaDma;
3ddba9a9 64typedef struct JSONWriter JSONWriter;
64baadc2
DDAG
65typedef struct MACAddr MACAddr;
66typedef struct MachineClass MachineClass;
67typedef struct MachineState MachineState;
68typedef struct MemoryListener MemoryListener;
69typedef struct MemoryMappingList MemoryMappingList;
70typedef struct MemoryRegion MemoryRegion;
1f4e496e 71typedef struct MemoryRegionCache MemoryRegionCache;
64baadc2 72typedef struct MemoryRegionSection MemoryRegionSection;
bca7856a 73typedef struct MigrationIncomingState MigrationIncomingState;
aefeb18b 74typedef struct MigrationState MigrationState;
64baadc2 75typedef struct Monitor Monitor;
64baadc2
DDAG
76typedef struct MSIMessage MSIMessage;
77typedef struct NetClientState NetClientState;
fdccce45 78typedef struct NetFilterState NetFilterState;
64baadc2 79typedef struct NICInfo NICInfo;
ca27b5eb 80typedef struct Object Object;
7cfda775 81typedef struct ObjectClass ObjectClass;
64baadc2 82typedef struct PCIBridge PCIBridge;
394e1bb7
EH
83typedef struct PCIBus PCIBus;
84typedef struct PCIDevice PCIDevice;
394e1bb7 85typedef struct PCIEAERErr PCIEAERErr;
64baadc2
DDAG
86typedef struct PCIEAERLog PCIEAERLog;
87typedef struct PCIEAERMsg PCIEAERMsg;
394e1bb7
EH
88typedef struct PCIEPort PCIEPort;
89typedef struct PCIESlot PCIESlot;
38ce1ebf
PMD
90typedef struct PCIESriovPF PCIESriovPF;
91typedef struct PCIESriovVF PCIESriovVF;
64baadc2
DDAG
92typedef struct PCIExpressDevice PCIExpressDevice;
93typedef struct PCIExpressHost PCIExpressHost;
a7c4d9c7 94typedef struct PCIHostDeviceAddress PCIHostDeviceAddress;
64baadc2 95typedef struct PCIHostState PCIHostState;
64baadc2 96typedef struct Property Property;
2988cbea 97typedef struct PropertyInfo PropertyInfo;
a98c370c
EB
98typedef struct QBool QBool;
99typedef struct QDict QDict;
64baadc2
DDAG
100typedef struct QEMUBH QEMUBH;
101typedef struct QemuConsole QemuConsole;
38ce1ebf 102typedef struct QEMUCursor QEMUCursor;
64baadc2 103typedef struct QEMUFile QEMUFile;
e70372fc 104typedef struct QemuMutex QemuMutex;
ae1e9380
PD
105typedef struct QemuOpts QemuOpts;
106typedef struct QemuOptsList QemuOptsList;
394e1bb7 107typedef struct QEMUSGList QEMUSGList;
a98c370c 108typedef struct QemuSpin QemuSpin;
64baadc2 109typedef struct QEMUTimer QEMUTimer;
2988cbea 110typedef struct QEMUTimerListGroup QEMUTimerListGroup;
9f5c734d 111typedef struct QList QList;
4d2d5c41 112typedef struct QNull QNull;
9f5c734d
MA
113typedef struct QNum QNum;
114typedef struct QObject QObject;
115typedef struct QString QString;
422148d3 116typedef struct RAMBlock RAMBlock;
2988cbea 117typedef struct Range Range;
3ddba9a9 118typedef struct ReservedRegion ReservedRegion;
64baadc2 119typedef struct SHPCDevice SHPCDevice;
64baadc2 120typedef struct SSIBus SSIBus;
1764ad70 121typedef struct TCGCPUOps TCGCPUOps;
d53106c9 122typedef struct TCGHelperInfo TCGHelperInfo;
8349d2ae 123typedef struct TranslationBlock TranslationBlock;
64baadc2
DDAG
124typedef struct VirtIODevice VirtIODevice;
125typedef struct Visitor Visitor;
2f780b6a 126typedef struct VMChangeStateEntry VMChangeStateEntry;
8a9358cc 127typedef struct VMStateDescription VMStateDescription;
2a28720d 128
64552b6b
MA
129/*
130 * Pointer types
131 * Such typedefs should be limited to cases where the typedef's users
132 * are oblivious of its "pointer-ness".
133 * Please keep this list in case-insensitive alphabetical order.
134 */
135typedef struct IRQState *qemu_irq;
136
2a28720d
MA
137/*
138 * Function types
139 */
64552b6b 140typedef void (*qemu_irq_handler)(void *opaque, int n, int level);
394e1bb7
EH
141
142#endif /* QEMU_TYPEDEFS_H */