mirror of https://github.com/xqemu/xqemu.git
hmp: Rename 'MigrationStatus' to 'HMPMigrationStatus'
We will use the typename 'MigrationStatus' for publicly exported typename, So here we rename the internal-only 'MigrationStatus' to 'HMPMigrationStatus'. Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
This commit is contained in:
parent
3119473166
commit
e49f35bdb4
8
hmp.c
8
hmp.c
|
@ -1341,16 +1341,16 @@ void hmp_block_job_complete(Monitor *mon, const QDict *qdict)
|
||||||
hmp_handle_error(mon, &error);
|
hmp_handle_error(mon, &error);
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef struct MigrationStatus
|
typedef struct HMPMigrationStatus
|
||||||
{
|
{
|
||||||
QEMUTimer *timer;
|
QEMUTimer *timer;
|
||||||
Monitor *mon;
|
Monitor *mon;
|
||||||
bool is_block_migration;
|
bool is_block_migration;
|
||||||
} MigrationStatus;
|
} HMPMigrationStatus;
|
||||||
|
|
||||||
static void hmp_migrate_status_cb(void *opaque)
|
static void hmp_migrate_status_cb(void *opaque)
|
||||||
{
|
{
|
||||||
MigrationStatus *status = opaque;
|
HMPMigrationStatus *status = opaque;
|
||||||
MigrationInfo *info;
|
MigrationInfo *info;
|
||||||
|
|
||||||
info = qmp_query_migrate(NULL);
|
info = qmp_query_migrate(NULL);
|
||||||
|
@ -1398,7 +1398,7 @@ void hmp_migrate(Monitor *mon, const QDict *qdict)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!detach) {
|
if (!detach) {
|
||||||
MigrationStatus *status;
|
HMPMigrationStatus *status;
|
||||||
|
|
||||||
if (monitor_suspend(mon) < 0) {
|
if (monitor_suspend(mon) < 0) {
|
||||||
monitor_printf(mon, "terminal does not allow synchronous "
|
monitor_printf(mon, "terminal does not allow synchronous "
|
||||||
|
|
Loading…
Reference in New Issue