xref: /qemu/include/qemu/typedefs.h (revision f7b1cd3c)
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 AccelCPUState AccelCPUState;
25 typedef struct AccelState AccelState;
26 typedef struct AddressSpace AddressSpace;
27 typedef struct AioContext AioContext;
28 typedef struct Aml Aml;
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 ConfidentialGuestSupport ConfidentialGuestSupport;
40 typedef struct CPUArchState CPUArchState;
41 typedef struct CPUPluginState CPUPluginState;
42 typedef struct CPUState CPUState;
43 typedef struct DeviceState DeviceState;
44 typedef struct DirtyBitmapSnapshot DirtyBitmapSnapshot;
45 typedef struct DisplayChangeListener DisplayChangeListener;
46 typedef struct DriveInfo DriveInfo;
47 typedef struct DumpState DumpState;
48 typedef struct Error Error;
49 typedef struct EventNotifier EventNotifier;
50 typedef struct FlatView FlatView;
51 typedef struct FWCfgState FWCfgState;
52 typedef struct HostMemoryBackend HostMemoryBackend;
53 typedef struct I2CBus I2CBus;
54 typedef struct I2SCodec I2SCodec;
55 typedef struct IOMMUMemoryRegion IOMMUMemoryRegion;
56 typedef struct ISABus ISABus;
57 typedef struct ISADevice ISADevice;
58 typedef struct IsaDma IsaDma;
59 typedef struct JSONWriter JSONWriter;
60 typedef struct MACAddr MACAddr;
61 typedef struct MachineClass MachineClass;
62 typedef struct MachineState MachineState;
63 typedef struct MemoryListener MemoryListener;
64 typedef struct MemoryMappingList MemoryMappingList;
65 typedef struct MemoryRegion MemoryRegion;
66 typedef struct MemoryRegionCache MemoryRegionCache;
67 typedef struct MemoryRegionSection MemoryRegionSection;
68 typedef struct MigrationIncomingState MigrationIncomingState;
69 typedef struct MigrationState MigrationState;
70 typedef struct Monitor Monitor;
71 typedef struct MSIMessage MSIMessage;
72 typedef struct NetClientState NetClientState;
73 typedef struct NetFilterState NetFilterState;
74 typedef struct NICInfo NICInfo;
75 typedef struct Object Object;
76 typedef struct ObjectClass ObjectClass;
77 typedef struct PCIBridge PCIBridge;
78 typedef struct PCIBus PCIBus;
79 typedef struct PCIDevice PCIDevice;
80 typedef struct PCIEPort PCIEPort;
81 typedef struct PCIESlot PCIESlot;
82 typedef struct PCIExpressDevice PCIExpressDevice;
83 typedef struct PCIExpressHost PCIExpressHost;
84 typedef struct PCIHostDeviceAddress PCIHostDeviceAddress;
85 typedef struct PCIHostState PCIHostState;
86 typedef struct Property Property;
87 typedef struct PropertyInfo PropertyInfo;
88 typedef struct QBool QBool;
89 typedef struct QDict QDict;
90 typedef struct QEMUBH QEMUBH;
91 typedef struct QemuConsole QemuConsole;
92 typedef struct QEMUCursor QEMUCursor;
93 typedef struct QEMUFile QEMUFile;
94 typedef struct QemuMutex QemuMutex;
95 typedef struct QemuOpts QemuOpts;
96 typedef struct QemuOptsList QemuOptsList;
97 typedef struct QEMUSGList QEMUSGList;
98 typedef struct QemuSpin QemuSpin;
99 typedef struct QEMUTimer QEMUTimer;
100 typedef struct QEMUTimerListGroup QEMUTimerListGroup;
101 typedef struct QList QList;
102 typedef struct QNull QNull;
103 typedef struct QNum QNum;
104 typedef struct QObject QObject;
105 typedef struct QString QString;
106 typedef struct RAMBlock RAMBlock;
107 typedef struct Range Range;
108 typedef struct ReservedRegion ReservedRegion;
109 typedef struct SHPCDevice SHPCDevice;
110 typedef struct SSIBus SSIBus;
111 typedef struct TCGCPUOps TCGCPUOps;
112 typedef struct TCGHelperInfo TCGHelperInfo;
113 typedef struct TaskState TaskState;
114 typedef struct TranslationBlock TranslationBlock;
115 typedef struct VirtIODevice VirtIODevice;
116 typedef struct Visitor Visitor;
117 typedef struct VMChangeStateEntry VMChangeStateEntry;
118 typedef struct VMStateDescription VMStateDescription;
119 
120 /*
121  * Pointer types
122  * Such typedefs should be limited to cases where the typedef's users
123  * are oblivious of its "pointer-ness".
124  * Please keep this list in case-insensitive alphabetical order.
125  */
126 typedef struct IRQState *qemu_irq;
127 
128 /*
129  * Function types
130  */
131 typedef void (*qemu_irq_handler)(void *opaque, int n, int level);
132 
133 #endif /* QEMU_TYPEDEFS_H */
134