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