diff options
author | Peter Xu | 2021-07-22 19:58:39 +0200 |
---|---|---|
committer | Dr. David Alan Gilbert | 2021-07-26 13:44:54 +0200 |
commit | 18711405b506e7ca3822ed19830f1c562e0247f9 (patch) | |
tree | fabb0f87cb34e59fa61855f1cd14f9dae5f1550c /migration/yank_functions.h | |
parent | migration: Make from_dst_file accesses thread-safe (diff) | |
download | qemu-18711405b506e7ca3822ed19830f1c562e0247f9.tar.gz qemu-18711405b506e7ca3822ed19830f1c562e0247f9.tar.xz qemu-18711405b506e7ca3822ed19830f1c562e0247f9.zip |
migration: Introduce migration_ioc_[un]register_yank()
There're plenty of places in migration/* that checks against either socket or
tls typed ioc for yank operations. Provide two helpers to hide all these
information.
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <20210722175841.938739-4-peterx@redhat.com>
Reviewed-by: Lukas Straub <lukasstraub2@web.de>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'migration/yank_functions.h')
-rw-r--r-- | migration/yank_functions.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/migration/yank_functions.h b/migration/yank_functions.h index 055ea22523..74c7f18c91 100644 --- a/migration/yank_functions.h +++ b/migration/yank_functions.h @@ -15,3 +15,5 @@ * @opaque: QIOChannel to shutdown */ void migration_yank_iochannel(void *opaque); +void migration_ioc_register_yank(QIOChannel *ioc); +void migration_ioc_unregister_yank(QIOChannel *ioc); |