mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
vmstate: add sensible arguments to vmstate_unregister()
vmsd alone is not enugh, because we can have several structs saved with the same description (vmsd). Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
274dfed8ba
commit
1eb7538b77
2 changed files with 10 additions and 3 deletions
2
hw/hw.h
2
hw/hw.h
|
@ -509,5 +509,5 @@ extern void vmstate_save_state(QEMUFile *f, const VMStateDescription *vmsd,
|
|||
const void *opaque);
|
||||
extern int vmstate_register(int instance_id, const VMStateDescription *vmsd,
|
||||
void *base);
|
||||
extern void vmstate_unregister(const char *idstr, void *opaque);
|
||||
void vmstate_unregister(const VMStateDescription *vmsd, void *opaque);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue