mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
migration: remove the QEMUFileOps 'shut_down' callback
This directly implements the shutdown logic using QIOChannel APIs. Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
This commit is contained in:
parent
0f58c3fcc7
commit
d3c581b750
3 changed files with 10 additions and 40 deletions
|
@ -89,22 +89,12 @@ typedef size_t (QEMURamSaveFunc)(QEMUFile *f,
|
|||
*/
|
||||
typedef QEMUFile *(QEMURetPathFunc)(void *opaque);
|
||||
|
||||
/*
|
||||
* Stop any read or write (depending on flags) on the underlying
|
||||
* transport on the QEMUFile.
|
||||
* Existing blocking reads/writes must be woken
|
||||
* Returns 0 on success, -err on error
|
||||
*/
|
||||
typedef int (QEMUFileShutdownFunc)(void *opaque, bool rd, bool wr,
|
||||
Error **errp);
|
||||
|
||||
typedef struct QEMUFileOps {
|
||||
QEMUFileGetBufferFunc *get_buffer;
|
||||
QEMUFileCloseFunc *close;
|
||||
QEMUFileSetBlocking *set_blocking;
|
||||
QEMUFileWritevBufferFunc *writev_buffer;
|
||||
QEMURetPathFunc *get_return_path;
|
||||
QEMUFileShutdownFunc *shut_down;
|
||||
} QEMUFileOps;
|
||||
|
||||
typedef struct QEMUFileHooks {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue