Merge tag 'edgar/xilinx-next-2022-09-21.for-upstream' of https://github.com/edgarigl...
[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 DeviceListener DeviceListener;
46 typedef struct DeviceState DeviceState;
47 typedef struct DirtyBitmapSnapshot DirtyBitmapSnapshot;
48 typedef struct DisplayChangeListener DisplayChangeListener;
49 typedef struct DriveInfo DriveInfo;
50 typedef struct Error Error;
51 typedef struct EventNotifier EventNotifier;
52 typedef struct FlatView FlatView;
53 typedef struct FWCfgEntry FWCfgEntry;
54 typedef struct FWCfgIoState FWCfgIoState;
55 typedef struct FWCfgMemState FWCfgMemState;
56 typedef struct FWCfgState FWCfgState;
57 typedef struct HostMemoryBackend HostMemoryBackend;
58 typedef struct I2CBus I2CBus;
59 typedef struct I2SCodec I2SCodec;
60 typedef struct IOMMUMemoryRegion IOMMUMemoryRegion;
61 typedef struct ISABus ISABus;
62 typedef struct ISADevice ISADevice;
63 typedef struct IsaDma IsaDma;
64 typedef struct JSONWriter JSONWriter;
65 typedef struct MACAddr MACAddr;
66 typedef struct MachineClass MachineClass;
67 typedef struct MachineState MachineState;
68 typedef struct MemoryListener MemoryListener;
69 typedef struct MemoryMappingList MemoryMappingList;
70 typedef struct MemoryRegion MemoryRegion;
71 typedef struct MemoryRegionCache MemoryRegionCache;
72 typedef struct MemoryRegionSection MemoryRegionSection;
73 typedef struct MigrationIncomingState MigrationIncomingState;
74 typedef struct MigrationState MigrationState;
75 typedef struct Monitor Monitor;
76 typedef struct MonitorDef MonitorDef;
77 typedef struct MSIMessage MSIMessage;
78 typedef struct NetClientState NetClientState;
79 typedef struct NetFilterState NetFilterState;
80 typedef struct NICInfo NICInfo;
81 typedef struct NodeInfo NodeInfo;
82 typedef struct NumaNodeMem NumaNodeMem;
83 typedef struct Object Object;
84 typedef struct ObjectClass ObjectClass;
85 typedef struct PCIBridge PCIBridge;
86 typedef struct PCIBus PCIBus;
87 typedef struct PCIDevice PCIDevice;
88 typedef struct PCIEAERErr PCIEAERErr;
89 typedef struct PCIEAERLog PCIEAERLog;
90 typedef struct PCIEAERMsg PCIEAERMsg;
91 typedef struct PCIESriovPF PCIESriovPF;
92 typedef struct PCIESriovVF PCIESriovVF;
93 typedef struct PCIEPort PCIEPort;
94 typedef struct PCIESlot PCIESlot;
95 typedef struct PCIExpressDevice PCIExpressDevice;
96 typedef struct PCIExpressHost PCIExpressHost;
97 typedef struct PCIHostDeviceAddress PCIHostDeviceAddress;
98 typedef struct PCIHostState PCIHostState;
99 typedef struct PostcopyDiscardState PostcopyDiscardState;
100 typedef struct Property Property;
101 typedef struct PropertyInfo PropertyInfo;
102 typedef struct QBool QBool;
103 typedef struct QDict QDict;
104 typedef struct QEMUBH QEMUBH;
105 typedef struct QemuConsole QemuConsole;
106 typedef struct QEMUFile QEMUFile;
107 typedef struct QemuLockable QemuLockable;
108 typedef struct QemuMutex QemuMutex;
109 typedef struct QemuOpt QemuOpt;
110 typedef struct QemuOpts QemuOpts;
111 typedef struct QemuOptsList QemuOptsList;
112 typedef struct QEMUSGList QEMUSGList;
113 typedef struct QemuSpin QemuSpin;
114 typedef struct QEMUTimer QEMUTimer;
115 typedef struct QEMUTimerListGroup QEMUTimerListGroup;
116 typedef struct QList QList;
117 typedef struct QNull QNull;
118 typedef struct QNum QNum;
119 typedef struct QObject QObject;
120 typedef struct QString QString;
121 typedef struct RAMBlock RAMBlock;
122 typedef struct Range Range;
123 typedef struct ReservedRegion ReservedRegion;
124 typedef struct SavedIOTLB SavedIOTLB;
125 typedef struct SHPCDevice SHPCDevice;
126 typedef struct SSIBus SSIBus;
127 typedef struct TranslationBlock TranslationBlock;
128 typedef struct VirtIODevice VirtIODevice;
129 typedef struct Visitor Visitor;
130 typedef struct VMChangeStateEntry VMChangeStateEntry;
131 typedef struct VMStateDescription VMStateDescription;
132
133 /*
134 * Pointer types
135 * Such typedefs should be limited to cases where the typedef's users
136 * are oblivious of its "pointer-ness".
137 * Please keep this list in case-insensitive alphabetical order.
138 */
139 typedef struct IRQState *qemu_irq;
140
141 /*
142 * Function types
143 */
144 typedef void SaveStateHandler(QEMUFile *f, void *opaque);
145 typedef int LoadStateHandler(QEMUFile *f, void *opaque, int version_id);
146 typedef void (*qemu_irq_handler)(void *opaque, int n, int level);
147
148 #endif /* QEMU_TYPEDEFS_H */