]> git.proxmox.com Git - mirror_qemu.git/blame - include/qemu/typedefs.h
numa: Don't include hw/boards.h into sysemu/numa.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 */
64baadc2 24typedef struct AdapterInfo AdapterInfo;
b421d9c6 25typedef struct AddressSpace AddressSpace;
64baadc2 26typedef struct AioContext AioContext;
50510ea2 27typedef struct AnnounceTimer AnnounceTimer;
9a3f5cf1 28typedef struct BdrvDirtyBitmap BdrvDirtyBitmap;
dc162c8e 29typedef struct BdrvDirtyBitmapIter BdrvDirtyBitmapIter;
26f54e9a 30typedef struct BlockBackend BlockBackend;
281d22d8 31typedef struct BlockBackendRootState BlockBackendRootState;
394e1bb7 32typedef struct BlockDriverState BlockDriverState;
64baadc2
DDAG
33typedef struct BusClass BusClass;
34typedef struct BusState BusState;
0ec7b3e7 35typedef struct Chardev Chardev;
64baadc2 36typedef struct CompatProperty CompatProperty;
e70372fc 37typedef struct CoMutex CoMutex;
32857f4d 38typedef struct CPUAddressSpace CPUAddressSpace;
b23197f9 39typedef struct CPUState CPUState;
707ff800 40typedef struct DeviceListener DeviceListener;
2988cbea 41typedef struct DeviceState DeviceState;
8deaf12c 42typedef struct DirtyBitmapSnapshot DirtyBitmapSnapshot;
394e1bb7 43typedef struct DisplayChangeListener DisplayChangeListener;
64baadc2 44typedef struct DriveInfo DriveInfo;
da34e65c 45typedef struct Error Error;
64baadc2 46typedef struct EventNotifier EventNotifier;
02d9651d 47typedef struct FlatView FlatView;
39736e18 48typedef struct FWCfgEntry FWCfgEntry;
5712db6a
LE
49typedef struct FWCfgIoState FWCfgIoState;
50typedef struct FWCfgMemState FWCfgMemState;
64baadc2 51typedef struct FWCfgState FWCfgState;
c97d6d2c 52typedef struct HVFX86EmulatorState HVFX86EmulatorState;
a5c82852 53typedef struct I2CBus I2CBus;
64baadc2 54typedef struct I2SCodec I2SCodec;
a98c370c 55typedef struct IOMMUMemoryRegion IOMMUMemoryRegion;
394e1bb7
EH
56typedef struct ISABus ISABus;
57typedef struct ISADevice ISADevice;
5484f30b 58typedef struct IsaDma IsaDma;
64baadc2
DDAG
59typedef struct MACAddr MACAddr;
60typedef struct MachineClass MachineClass;
61typedef struct MachineState MachineState;
62typedef struct MemoryListener MemoryListener;
63typedef struct MemoryMappingList MemoryMappingList;
64typedef struct MemoryRegion MemoryRegion;
1f4e496e 65typedef struct MemoryRegionCache MemoryRegionCache;
64baadc2 66typedef struct MemoryRegionSection MemoryRegionSection;
bca7856a 67typedef struct MigrationIncomingState MigrationIncomingState;
aefeb18b 68typedef struct MigrationState MigrationState;
64baadc2 69typedef struct Monitor Monitor;
2988cbea 70typedef struct MonitorDef MonitorDef;
64baadc2
DDAG
71typedef struct MSIMessage MSIMessage;
72typedef struct NetClientState NetClientState;
fdccce45 73typedef struct NetFilterState NetFilterState;
64baadc2 74typedef struct NICInfo NICInfo;
aec90730 75typedef struct NodeInfo NodeInfo;
31959e82 76typedef struct NumaNodeMem NumaNodeMem;
7cfda775 77typedef struct ObjectClass ObjectClass;
64baadc2 78typedef struct PCIBridge PCIBridge;
394e1bb7
EH
79typedef struct PCIBus PCIBus;
80typedef struct PCIDevice PCIDevice;
394e1bb7 81typedef struct PCIEAERErr PCIEAERErr;
64baadc2
DDAG
82typedef struct PCIEAERLog PCIEAERLog;
83typedef struct PCIEAERMsg PCIEAERMsg;
394e1bb7
EH
84typedef struct PCIEPort PCIEPort;
85typedef struct PCIESlot PCIESlot;
64baadc2
DDAG
86typedef struct PCIExpressDevice PCIExpressDevice;
87typedef struct PCIExpressHost PCIExpressHost;
a7c4d9c7 88typedef struct PCIHostDeviceAddress PCIHostDeviceAddress;
64baadc2 89typedef struct PCIHostState PCIHostState;
2988cbea 90typedef struct PCMachineState PCMachineState;
e0b266f0 91typedef struct PostcopyDiscardState PostcopyDiscardState;
64baadc2 92typedef struct Property Property;
2988cbea 93typedef struct PropertyInfo PropertyInfo;
a98c370c
EB
94typedef struct QBool QBool;
95typedef struct QDict QDict;
64baadc2
DDAG
96typedef struct QEMUBH QEMUBH;
97typedef struct QemuConsole QemuConsole;
98typedef struct QEMUFile QEMUFile;
e70372fc
PB
99typedef struct QemuLockable QemuLockable;
100typedef struct QemuMutex QemuMutex;
ae1e9380
PD
101typedef struct QemuOpt QemuOpt;
102typedef struct QemuOpts QemuOpts;
103typedef struct QemuOptsList QemuOptsList;
394e1bb7 104typedef struct QEMUSGList QEMUSGList;
a98c370c 105typedef struct QemuSpin QemuSpin;
64baadc2 106typedef struct QEMUTimer QEMUTimer;
2988cbea 107typedef struct QEMUTimerListGroup QEMUTimerListGroup;
ea134caa 108typedef struct QJSON QJSON;
9f5c734d 109typedef struct QList QList;
4d2d5c41 110typedef struct QNull QNull;
9f5c734d
MA
111typedef struct QNum QNum;
112typedef struct QObject QObject;
113typedef struct QString QString;
422148d3 114typedef struct RAMBlock RAMBlock;
2988cbea 115typedef struct Range Range;
64baadc2 116typedef struct SHPCDevice SHPCDevice;
64baadc2 117typedef struct SSIBus SSIBus;
64baadc2
DDAG
118typedef struct VirtIODevice VirtIODevice;
119typedef struct Visitor Visitor;
8a9358cc 120typedef struct VMStateDescription VMStateDescription;
2a28720d 121
64552b6b
MA
122/*
123 * Pointer types
124 * Such typedefs should be limited to cases where the typedef's users
125 * are oblivious of its "pointer-ness".
126 * Please keep this list in case-insensitive alphabetical order.
127 */
128typedef struct IRQState *qemu_irq;
129
2a28720d
MA
130/*
131 * Function types
132 */
68a4a2fd
JQ
133typedef void SaveStateHandler(QEMUFile *f, void *opaque);
134typedef int LoadStateHandler(QEMUFile *f, void *opaque, int version_id);
64552b6b 135typedef void (*qemu_irq_handler)(void *opaque, int n, int level);
394e1bb7
EH
136
137#endif /* QEMU_TYPEDEFS_H */