mirror of https://github.com/xemu-project/xemu.git
qdev-core: remove DeviceListener from typedefs.h
It is needed in very few places, which already depend on other parts of qdev-core.h files. The benefit of having it in typedefs.h is small. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
c71a42b51a
commit
667cdad031
|
@ -294,6 +294,7 @@ struct DeviceState {
|
||||||
MemReentrancyGuard mem_reentrancy_guard;
|
MemReentrancyGuard mem_reentrancy_guard;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
typedef struct DeviceListener DeviceListener;
|
||||||
struct DeviceListener {
|
struct DeviceListener {
|
||||||
void (*realize)(DeviceListener *listener, DeviceState *dev);
|
void (*realize)(DeviceListener *listener, DeviceState *dev);
|
||||||
void (*unrealize)(DeviceListener *listener, DeviceState *dev);
|
void (*unrealize)(DeviceListener *listener, DeviceState *dev);
|
||||||
|
|
|
@ -47,7 +47,6 @@ typedef struct CpuInfoFast CpuInfoFast;
|
||||||
typedef struct CPUJumpCache CPUJumpCache;
|
typedef struct CPUJumpCache CPUJumpCache;
|
||||||
typedef struct CPUState CPUState;
|
typedef struct CPUState CPUState;
|
||||||
typedef struct CPUTLBEntryFull CPUTLBEntryFull;
|
typedef struct CPUTLBEntryFull CPUTLBEntryFull;
|
||||||
typedef struct DeviceListener DeviceListener;
|
|
||||||
typedef struct DeviceState DeviceState;
|
typedef struct DeviceState DeviceState;
|
||||||
typedef struct DirtyBitmapSnapshot DirtyBitmapSnapshot;
|
typedef struct DirtyBitmapSnapshot DirtyBitmapSnapshot;
|
||||||
typedef struct DisplayChangeListener DisplayChangeListener;
|
typedef struct DisplayChangeListener DisplayChangeListener;
|
||||||
|
|
Loading…
Reference in New Issue