diff options
author | Maxim Levitsky | 2020-03-08 10:24:35 +0100 |
---|---|---|
committer | Dr. David Alan Gilbert | 2020-03-09 19:07:48 +0100 |
commit | 6b7fbf61fbd4bcbcd20efffdc3fcc92820f6b07d (patch) | |
tree | 5a9368e5b07efcfc5829f1d61f0fe9e77eb8a6df /monitor | |
parent | monitor/hmp: move hmp_drive_mirror and hmp_drive_backup to block-hmp-cmds.c (diff) | |
download | qemu-6b7fbf61fbd4bcbcd20efffdc3fcc92820f6b07d.tar.gz qemu-6b7fbf61fbd4bcbcd20efffdc3fcc92820f6b07d.tar.xz qemu-6b7fbf61fbd4bcbcd20efffdc3fcc92820f6b07d.zip |
monitor/hmp: move hmp_block_job* to block-hmp-cmds.c
Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-Id: <20200308092440.23564-7-mlevitsk@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'monitor')
-rw-r--r-- | monitor/hmp-cmds.c | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/monitor/hmp-cmds.c b/monitor/hmp-cmds.c index 6254f19842..25d1c19a96 100644 --- a/monitor/hmp-cmds.c +++ b/monitor/hmp-cmds.c @@ -1997,58 +1997,6 @@ void hmp_block_stream(Monitor *mon, const QDict *qdict) hmp_handle_error(mon, error); } -void hmp_block_job_set_speed(Monitor *mon, const QDict *qdict) -{ - Error *error = NULL; - const char *device = qdict_get_str(qdict, "device"); - int64_t value = qdict_get_int(qdict, "speed"); - - qmp_block_job_set_speed(device, value, &error); - - hmp_handle_error(mon, error); -} - -void hmp_block_job_cancel(Monitor *mon, const QDict *qdict) -{ - Error *error = NULL; - const char *device = qdict_get_str(qdict, "device"); - bool force = qdict_get_try_bool(qdict, "force", false); - - qmp_block_job_cancel(device, true, force, &error); - - hmp_handle_error(mon, error); -} - -void hmp_block_job_pause(Monitor *mon, const QDict *qdict) -{ - Error *error = NULL; - const char *device = qdict_get_str(qdict, "device"); - - qmp_block_job_pause(device, &error); - - hmp_handle_error(mon, error); -} - -void hmp_block_job_resume(Monitor *mon, const QDict *qdict) -{ - Error *error = NULL; - const char *device = qdict_get_str(qdict, "device"); - - qmp_block_job_resume(device, &error); - - hmp_handle_error(mon, error); -} - -void hmp_block_job_complete(Monitor *mon, const QDict *qdict) -{ - Error *error = NULL; - const char *device = qdict_get_str(qdict, "device"); - - qmp_block_job_complete(device, &error); - - hmp_handle_error(mon, error); -} - typedef struct HMPMigrationStatus { QEMUTimer *timer; |