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