]> git.proxmox.com Git - mirror_qemu.git/blame - include/qemu/typedefs.h
include/qemu: Add TCGCPUOps typedef to 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;
50510ea2 30typedef struct AnnounceTimer AnnounceTimer;
b36e239e 31typedef struct ArchCPU ArchCPU;
9a3f5cf1 32typedef struct BdrvDirtyBitmap BdrvDirtyBitmap;
dc162c8e 33typedef struct BdrvDirtyBitmapIter BdrvDirtyBitmapIter;
26f54e9a 34typedef struct BlockBackend BlockBackend;
281d22d8 35typedef struct BlockBackendRootState BlockBackendRootState;
394e1bb7 36typedef struct BlockDriverState BlockDriverState;
64baadc2
DDAG
37typedef struct BusClass BusClass;
38typedef struct BusState BusState;
0ec7b3e7 39typedef struct Chardev Chardev;
ad140dad 40typedef struct Clock Clock;
64baadc2 41typedef struct CompatProperty CompatProperty;
f91f9f25 42typedef struct ConfidentialGuestSupport ConfidentialGuestSupport;
32857f4d 43typedef struct CPUAddressSpace CPUAddressSpace;
1ea4a06a 44typedef struct CPUArchState CPUArchState;
5503da4a 45typedef struct CpuInfoFast CpuInfoFast;
a976a99a 46typedef struct CPUJumpCache CPUJumpCache;
b23197f9 47typedef struct CPUState CPUState;
af803a4f 48typedef struct CPUTLBEntryFull CPUTLBEntryFull;
707ff800 49typedef struct DeviceListener DeviceListener;
2988cbea 50typedef struct DeviceState DeviceState;
8deaf12c 51typedef struct DirtyBitmapSnapshot DirtyBitmapSnapshot;
394e1bb7 52typedef struct DisplayChangeListener DisplayChangeListener;
64baadc2 53typedef struct DriveInfo DriveInfo;
38ce1ebf 54typedef struct DumpState DumpState;
da34e65c 55typedef struct Error Error;
64baadc2 56typedef struct EventNotifier EventNotifier;
02d9651d 57typedef struct FlatView FlatView;
39736e18 58typedef struct FWCfgEntry FWCfgEntry;
5712db6a
LE
59typedef struct FWCfgIoState FWCfgIoState;
60typedef struct FWCfgMemState FWCfgMemState;
64baadc2 61typedef struct FWCfgState FWCfgState;
38ce1ebf 62typedef struct GraphicHwOps GraphicHwOps;
7969dd91 63typedef struct HostMemoryBackend HostMemoryBackend;
a5c82852 64typedef struct I2CBus I2CBus;
64baadc2 65typedef struct I2SCodec I2SCodec;
a98c370c 66typedef struct IOMMUMemoryRegion IOMMUMemoryRegion;
394e1bb7
EH
67typedef struct ISABus ISABus;
68typedef struct ISADevice ISADevice;
5484f30b 69typedef struct IsaDma IsaDma;
3ddba9a9 70typedef struct JSONWriter JSONWriter;
64baadc2
DDAG
71typedef struct MACAddr MACAddr;
72typedef struct MachineClass MachineClass;
73typedef struct MachineState MachineState;
74typedef struct MemoryListener MemoryListener;
75typedef struct MemoryMappingList MemoryMappingList;
76typedef struct MemoryRegion MemoryRegion;
1f4e496e 77typedef struct MemoryRegionCache MemoryRegionCache;
64baadc2 78typedef struct MemoryRegionSection MemoryRegionSection;
bca7856a 79typedef struct MigrationIncomingState MigrationIncomingState;
aefeb18b 80typedef struct MigrationState MigrationState;
64baadc2 81typedef struct Monitor Monitor;
2988cbea 82typedef struct MonitorDef MonitorDef;
64baadc2
DDAG
83typedef struct MSIMessage MSIMessage;
84typedef struct NetClientState NetClientState;
fdccce45 85typedef struct NetFilterState NetFilterState;
64baadc2 86typedef struct NICInfo NICInfo;
aec90730 87typedef struct NodeInfo NodeInfo;
31959e82 88typedef struct NumaNodeMem NumaNodeMem;
ca27b5eb 89typedef struct Object Object;
7cfda775 90typedef struct ObjectClass ObjectClass;
64baadc2 91typedef struct PCIBridge PCIBridge;
394e1bb7
EH
92typedef struct PCIBus PCIBus;
93typedef struct PCIDevice PCIDevice;
394e1bb7 94typedef struct PCIEAERErr PCIEAERErr;
64baadc2
DDAG
95typedef struct PCIEAERLog PCIEAERLog;
96typedef struct PCIEAERMsg PCIEAERMsg;
394e1bb7
EH
97typedef struct PCIEPort PCIEPort;
98typedef struct PCIESlot PCIESlot;
38ce1ebf
PMD
99typedef struct PCIESriovPF PCIESriovPF;
100typedef struct PCIESriovVF PCIESriovVF;
64baadc2
DDAG
101typedef struct PCIExpressDevice PCIExpressDevice;
102typedef struct PCIExpressHost PCIExpressHost;
a7c4d9c7 103typedef struct PCIHostDeviceAddress PCIHostDeviceAddress;
64baadc2 104typedef struct PCIHostState PCIHostState;
2aaf0ec7 105typedef struct PICCommonState PICCommonState;
e0b266f0 106typedef struct PostcopyDiscardState PostcopyDiscardState;
64baadc2 107typedef struct Property Property;
2988cbea 108typedef struct PropertyInfo PropertyInfo;
a98c370c
EB
109typedef struct QBool QBool;
110typedef struct QDict QDict;
64baadc2
DDAG
111typedef struct QEMUBH QEMUBH;
112typedef struct QemuConsole QemuConsole;
38ce1ebf 113typedef struct QEMUCursor QEMUCursor;
64baadc2 114typedef struct QEMUFile QEMUFile;
e70372fc
PB
115typedef struct QemuLockable QemuLockable;
116typedef struct QemuMutex QemuMutex;
ae1e9380
PD
117typedef struct QemuOpt QemuOpt;
118typedef struct QemuOpts QemuOpts;
119typedef struct QemuOptsList QemuOptsList;
394e1bb7 120typedef struct QEMUSGList QEMUSGList;
a98c370c 121typedef struct QemuSpin QemuSpin;
64baadc2 122typedef struct QEMUTimer QEMUTimer;
2988cbea 123typedef struct QEMUTimerListGroup QEMUTimerListGroup;
9f5c734d 124typedef struct QList QList;
4d2d5c41 125typedef struct QNull QNull;
9f5c734d
MA
126typedef struct QNum QNum;
127typedef struct QObject QObject;
128typedef struct QString QString;
422148d3 129typedef struct RAMBlock RAMBlock;
2988cbea 130typedef struct Range Range;
3ddba9a9 131typedef struct ReservedRegion ReservedRegion;
64baadc2 132typedef struct SHPCDevice SHPCDevice;
64baadc2 133typedef struct SSIBus SSIBus;
1764ad70 134typedef struct TCGCPUOps TCGCPUOps;
d53106c9 135typedef struct TCGHelperInfo TCGHelperInfo;
8349d2ae 136typedef struct TranslationBlock TranslationBlock;
64baadc2
DDAG
137typedef struct VirtIODevice VirtIODevice;
138typedef struct Visitor Visitor;
2f780b6a 139typedef struct VMChangeStateEntry VMChangeStateEntry;
8a9358cc 140typedef struct VMStateDescription VMStateDescription;
2a28720d 141
64552b6b
MA
142/*
143 * Pointer types
144 * Such typedefs should be limited to cases where the typedef's users
145 * are oblivious of its "pointer-ness".
146 * Please keep this list in case-insensitive alphabetical order.
147 */
148typedef struct IRQState *qemu_irq;
149
2a28720d
MA
150/*
151 * Function types
152 */
68a4a2fd
JQ
153typedef void SaveStateHandler(QEMUFile *f, void *opaque);
154typedef int LoadStateHandler(QEMUFile *f, void *opaque, int version_id);
64552b6b 155typedef void (*qemu_irq_handler)(void *opaque, int n, int level);
394e1bb7
EH
156
157#endif /* QEMU_TYPEDEFS_H */