]> git.proxmox.com Git - mirror_qemu.git/blob - include/qemu/typedefs.h
a4aee238c75aa437ee6190c97195a813eaf799de
[mirror_qemu.git] / include / qemu / typedefs.h
1 #ifndef QEMU_TYPEDEFS_H
2 #define QEMU_TYPEDEFS_H
3
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 */
19
20 /*
21 * Incomplete struct types
22 * Please keep this list in case-insensitive alphabetical order.
23 */
24 typedef struct AdapterInfo AdapterInfo;
25 typedef struct AddressSpace AddressSpace;
26 typedef struct AioContext AioContext;
27 typedef struct Aml Aml;
28 typedef struct AnnounceTimer AnnounceTimer;
29 typedef struct ArchCPU ArchCPU;
30 typedef struct BdrvDirtyBitmap BdrvDirtyBitmap;
31 typedef struct BdrvDirtyBitmapIter BdrvDirtyBitmapIter;
32 typedef struct BlockBackend BlockBackend;
33 typedef struct BlockBackendRootState BlockBackendRootState;
34 typedef struct BlockDriverState BlockDriverState;
35 typedef struct BusClass BusClass;
36 typedef struct BusState BusState;
37 typedef struct Chardev Chardev;
38 typedef struct Clock Clock;
39 typedef struct CompatProperty CompatProperty;
40 typedef struct CoMutex CoMutex;
41 typedef struct ConfidentialGuestSupport ConfidentialGuestSupport;
42 typedef struct CPUAddressSpace CPUAddressSpace;
43 typedef struct CPUArchState CPUArchState;
44 typedef struct CPUState CPUState;
45 typedef struct CPUTLBEntryFull CPUTLBEntryFull;
46 typedef struct DeviceListener DeviceListener;
47 typedef struct DeviceState DeviceState;
48 typedef struct DirtyBitmapSnapshot DirtyBitmapSnapshot;
49 typedef struct DisplayChangeListener DisplayChangeListener;
50 typedef struct DriveInfo DriveInfo;
51 typedef struct Error Error;
52 typedef struct EventNotifier EventNotifier;
53 typedef struct FlatView FlatView;
54 typedef struct FWCfgEntry FWCfgEntry;
55 typedef struct FWCfgIoState FWCfgIoState;
56 typedef struct FWCfgMemState FWCfgMemState;
57 typedef struct FWCfgState FWCfgState;
58 typedef struct HostMemoryBackend HostMemoryBackend;
59 typedef struct I2CBus I2CBus;
60 typedef struct I2SCodec I2SCodec;
61 typedef struct IOMMUMemoryRegion IOMMUMemoryRegion;
62 typedef struct ISABus ISABus;
63 typedef struct ISADevice ISADevice;
64 typedef struct IsaDma IsaDma;
65 typedef struct JSONWriter JSONWriter;
66 typedef struct MACAddr MACAddr;
67 typedef struct MachineClass MachineClass;
68 typedef struct MachineState MachineState;
69 typedef struct MemoryListener MemoryListener;
70 typedef struct MemoryMappingList MemoryMappingList;
71 typedef struct MemoryRegion MemoryRegion;
72 typedef struct MemoryRegionCache MemoryRegionCache;
73 typedef struct MemoryRegionSection MemoryRegionSection;
74 typedef struct MigrationIncomingState MigrationIncomingState;
75 typedef struct MigrationState MigrationState;
76 typedef struct Monitor Monitor;
77 typedef struct MonitorDef MonitorDef;
78 typedef struct MSIMessage MSIMessage;
79 typedef struct NetClientState NetClientState;
80 typedef struct NetFilterState NetFilterState;
81 typedef struct NICInfo NICInfo;
82 typedef struct NodeInfo NodeInfo;
83 typedef struct NumaNodeMem NumaNodeMem;
84 typedef struct Object Object;
85 typedef struct ObjectClass ObjectClass;
86 typedef struct PCIBridge PCIBridge;
87 typedef struct PCIBus PCIBus;
88 typedef struct PCIDevice PCIDevice;
89 typedef struct PCIEAERErr PCIEAERErr;
90 typedef struct PCIEAERLog PCIEAERLog;
91 typedef struct PCIEAERMsg PCIEAERMsg;
92 typedef struct PCIESriovPF PCIESriovPF;
93 typedef struct PCIESriovVF PCIESriovVF;
94 typedef struct PCIEPort PCIEPort;
95 typedef struct PCIESlot PCIESlot;
96 typedef struct PCIExpressDevice PCIExpressDevice;
97 typedef struct PCIExpressHost PCIExpressHost;
98 typedef struct PCIHostDeviceAddress PCIHostDeviceAddress;
99 typedef struct PCIHostState PCIHostState;
100 typedef struct PostcopyDiscardState PostcopyDiscardState;
101 typedef struct Property Property;
102 typedef struct PropertyInfo PropertyInfo;
103 typedef struct QBool QBool;
104 typedef struct QDict QDict;
105 typedef struct QEMUBH QEMUBH;
106 typedef struct QemuConsole QemuConsole;
107 typedef struct QEMUFile QEMUFile;
108 typedef struct QemuLockable QemuLockable;
109 typedef struct QemuMutex QemuMutex;
110 typedef struct QemuOpt QemuOpt;
111 typedef struct QemuOpts QemuOpts;
112 typedef struct QemuOptsList QemuOptsList;
113 typedef struct QEMUSGList QEMUSGList;
114 typedef struct QemuSpin QemuSpin;
115 typedef struct QEMUTimer QEMUTimer;
116 typedef struct QEMUTimerListGroup QEMUTimerListGroup;
117 typedef struct QList QList;
118 typedef struct QNull QNull;
119 typedef struct QNum QNum;
120 typedef struct QObject QObject;
121 typedef struct QString QString;
122 typedef struct RAMBlock RAMBlock;
123 typedef struct Range Range;
124 typedef struct ReservedRegion ReservedRegion;
125 typedef struct SavedIOTLB SavedIOTLB;
126 typedef struct SHPCDevice SHPCDevice;
127 typedef struct SSIBus SSIBus;
128 typedef struct TranslationBlock TranslationBlock;
129 typedef struct VirtIODevice VirtIODevice;
130 typedef struct Visitor Visitor;
131 typedef struct VMChangeStateEntry VMChangeStateEntry;
132 typedef struct VMStateDescription VMStateDescription;
133
134 /*
135 * Pointer types
136 * Such typedefs should be limited to cases where the typedef's users
137 * are oblivious of its "pointer-ness".
138 * Please keep this list in case-insensitive alphabetical order.
139 */
140 typedef struct IRQState *qemu_irq;
141
142 /*
143 * Function types
144 */
145 typedef void SaveStateHandler(QEMUFile *f, void *opaque);
146 typedef int LoadStateHandler(QEMUFile *f, void *opaque, int version_id);
147 typedef void (*qemu_irq_handler)(void *opaque, int n, int level);
148
149 #endif /* QEMU_TYPEDEFS_H */