]> git.proxmox.com Git - mirror_qemu.git/blame - include/qemu/typedefs.h
vmstate: add qom interface to get id
[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;
7969dd91 52typedef struct HostMemoryBackend HostMemoryBackend;
c97d6d2c 53typedef struct HVFX86EmulatorState HVFX86EmulatorState;
a5c82852 54typedef struct I2CBus I2CBus;
64baadc2 55typedef struct I2SCodec I2SCodec;
a98c370c 56typedef struct IOMMUMemoryRegion IOMMUMemoryRegion;
394e1bb7
EH
57typedef struct ISABus ISABus;
58typedef struct ISADevice ISADevice;
5484f30b 59typedef struct IsaDma IsaDma;
64baadc2
DDAG
60typedef struct MACAddr MACAddr;
61typedef struct MachineClass MachineClass;
62typedef struct MachineState MachineState;
63typedef struct MemoryListener MemoryListener;
64typedef struct MemoryMappingList MemoryMappingList;
65typedef struct MemoryRegion MemoryRegion;
1f4e496e 66typedef struct MemoryRegionCache MemoryRegionCache;
64baadc2 67typedef struct MemoryRegionSection MemoryRegionSection;
bca7856a 68typedef struct MigrationIncomingState MigrationIncomingState;
aefeb18b 69typedef struct MigrationState MigrationState;
64baadc2 70typedef struct Monitor Monitor;
2988cbea 71typedef struct MonitorDef MonitorDef;
64baadc2
DDAG
72typedef struct MSIMessage MSIMessage;
73typedef struct NetClientState NetClientState;
fdccce45 74typedef struct NetFilterState NetFilterState;
64baadc2 75typedef struct NICInfo NICInfo;
aec90730 76typedef struct NodeInfo NodeInfo;
31959e82 77typedef struct NumaNodeMem NumaNodeMem;
7cfda775 78typedef struct ObjectClass ObjectClass;
64baadc2 79typedef struct PCIBridge PCIBridge;
394e1bb7
EH
80typedef struct PCIBus PCIBus;
81typedef struct PCIDevice PCIDevice;
394e1bb7 82typedef struct PCIEAERErr PCIEAERErr;
64baadc2
DDAG
83typedef struct PCIEAERLog PCIEAERLog;
84typedef struct PCIEAERMsg PCIEAERMsg;
394e1bb7
EH
85typedef struct PCIEPort PCIEPort;
86typedef struct PCIESlot PCIESlot;
64baadc2
DDAG
87typedef struct PCIExpressDevice PCIExpressDevice;
88typedef struct PCIExpressHost PCIExpressHost;
a7c4d9c7 89typedef struct PCIHostDeviceAddress PCIHostDeviceAddress;
64baadc2 90typedef struct PCIHostState PCIHostState;
2988cbea 91typedef struct PCMachineState PCMachineState;
e0b266f0 92typedef struct PostcopyDiscardState PostcopyDiscardState;
64baadc2 93typedef struct Property Property;
2988cbea 94typedef struct PropertyInfo PropertyInfo;
a98c370c
EB
95typedef struct QBool QBool;
96typedef struct QDict QDict;
64baadc2
DDAG
97typedef struct QEMUBH QEMUBH;
98typedef struct QemuConsole QemuConsole;
99typedef struct QEMUFile QEMUFile;
e70372fc
PB
100typedef struct QemuLockable QemuLockable;
101typedef struct QemuMutex QemuMutex;
ae1e9380
PD
102typedef struct QemuOpt QemuOpt;
103typedef struct QemuOpts QemuOpts;
104typedef struct QemuOptsList QemuOptsList;
394e1bb7 105typedef struct QEMUSGList QEMUSGList;
a98c370c 106typedef struct QemuSpin QemuSpin;
64baadc2 107typedef struct QEMUTimer QEMUTimer;
2988cbea 108typedef struct QEMUTimerListGroup QEMUTimerListGroup;
ea134caa 109typedef struct QJSON QJSON;
9f5c734d 110typedef struct QList QList;
4d2d5c41 111typedef struct QNull QNull;
9f5c734d
MA
112typedef struct QNum QNum;
113typedef struct QObject QObject;
114typedef struct QString QString;
422148d3 115typedef struct RAMBlock RAMBlock;
2988cbea 116typedef struct Range Range;
64baadc2 117typedef struct SHPCDevice SHPCDevice;
64baadc2 118typedef struct SSIBus SSIBus;
64baadc2
DDAG
119typedef struct VirtIODevice VirtIODevice;
120typedef struct Visitor Visitor;
2f780b6a 121typedef struct VMChangeStateEntry VMChangeStateEntry;
8a9358cc 122typedef struct VMStateDescription VMStateDescription;
2a28720d 123
64552b6b
MA
124/*
125 * Pointer types
126 * Such typedefs should be limited to cases where the typedef's users
127 * are oblivious of its "pointer-ness".
128 * Please keep this list in case-insensitive alphabetical order.
129 */
130typedef struct IRQState *qemu_irq;
131
2a28720d
MA
132/*
133 * Function types
134 */
68a4a2fd
JQ
135typedef void SaveStateHandler(QEMUFile *f, void *opaque);
136typedef int LoadStateHandler(QEMUFile *f, void *opaque, int version_id);
64552b6b 137typedef void (*qemu_irq_handler)(void *opaque, int n, int level);
394e1bb7
EH
138
139#endif /* QEMU_TYPEDEFS_H */