mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
migration: enhance migrate_uri_parse
Export migrate_uri_parse for use outside migration internals, and define a method migrate_is_uri that indicates when migrate_uri_parse should be used. Signed-off-by: Steve Sistare <steven.sistare@oracle.com> Reviewed-by: Peter Xu <peterx@redhat.com> Link: https://lore.kernel.org/r/1736967650-129648-12-git-send-email-steven.sistare@oracle.com Signed-off-by: Fabiano Rosas <farosas@suse.de>
This commit is contained in:
parent
2ef121688f
commit
f2374f0fc3
3 changed files with 18 additions and 2 deletions
|
@ -108,4 +108,11 @@ bool migration_in_bg_snapshot(void);
|
|||
bool migration_block_activate(Error **errp);
|
||||
bool migration_block_inactivate(void);
|
||||
|
||||
/* True if @uri starts with a syntactically valid URI prefix */
|
||||
bool migrate_is_uri(const char *uri);
|
||||
|
||||
/* Parse @uri and return @channel, returning true on success */
|
||||
bool migrate_uri_parse(const char *uri, MigrationChannel **channel,
|
||||
Error **errp);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue