aboutsummaryrefslogtreecommitdiff
path: root/migration/file.h
diff options
context:
space:
mode:
authorFabiano Rosas <farosas@suse.de>2023-10-23 15:20:47 -0300
committerJuan Quintela <quintela@redhat.com>2023-11-02 11:35:04 +0100
commit02afba63e93729e3bdc2ffa900c4e8bc835e1950 (patch)
treec535b54121afd311ec396d2dca62f1a4083a4555 /migration/file.h
parentcbab4face57b829e93e935b3bf52bf9f1bea0e42 (diff)
migration: Convert the file backend to the new QAPI syntax
Convert the file: URI to accept a FileMigrationArgs to be compatible with the new migration QAPI. Signed-off-by: Fabiano Rosas <farosas@suse.de> Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com> Message-ID: <20231023182053.8711-9-farosas@suse.de>
Diffstat (limited to 'migration/file.h')
-rw-r--r--migration/file.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/migration/file.h b/migration/file.h
index 3888a57105..37d6a08bfc 100644
--- a/migration/file.h
+++ b/migration/file.h
@@ -7,9 +7,12 @@
#ifndef QEMU_MIGRATION_FILE_H
#define QEMU_MIGRATION_FILE_H
-void file_start_incoming_migration(const char *filename, Error **errp);
-void file_start_outgoing_migration(MigrationState *s, const char *filename,
- Error **errp);
+#include "qapi/qapi-types-migration.h"
+
+void file_start_incoming_migration(FileMigrationArgs *file_args, Error **errp);
+
+void file_start_outgoing_migration(MigrationState *s,
+ FileMigrationArgs *file_args, Error **errp);
int file_parse_offset(char *filespec, uint64_t *offsetp, Error **errp);
#endif