mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-11 16:00:50 -07:00
notifier: switch to QLIST
Notifiers do not need to access both ends of the list, and using a QLIST also simplifies the API. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
c77de088b1
commit
31552529a7
6 changed files with 13 additions and 13 deletions
|
|
@ -335,7 +335,7 @@ void add_migration_state_change_notifier(Notifier *notify)
|
|||
|
||||
void remove_migration_state_change_notifier(Notifier *notify)
|
||||
{
|
||||
notifier_list_remove(&migration_state_notifiers, notify);
|
||||
notifier_remove(notify);
|
||||
}
|
||||
|
||||
bool migration_is_active(MigrationState *s)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue