Revision 7f23f812 hw/qdev.h
b/hw/qdev.h | ||
---|---|---|
115 | 115 |
|
116 | 116 |
typedef int (*qdev_initfn)(DeviceState *dev, DeviceInfo *info); |
117 | 117 |
typedef int (*qdev_event)(DeviceState *dev); |
118 |
typedef void (*qdev_resetfn)(DeviceState *dev); |
|
118 | 119 |
|
119 | 120 |
struct DeviceInfo { |
120 | 121 |
const char *name; |
... | ... | |
125 | 126 |
int no_user; |
126 | 127 |
|
127 | 128 |
/* callbacks */ |
128 |
QEMUResetHandler *reset;
|
|
129 |
qdev_resetfn reset;
|
|
129 | 130 |
|
130 | 131 |
/* device state */ |
131 | 132 |
const VMStateDescription *vmsd; |
Also available in: Unified diff