mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
job: Add lifecycle QMP commands
This adds QMP commands that control the transition between states of the job lifecycle. Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
1dac83f1a1
commit
1a90bc8128
5 changed files with 244 additions and 0 deletions
|
@ -109,6 +109,15 @@ job_state_transition(void *job, int ret, const char *legal, const char *s0, con
|
|||
job_apply_verb(void *job, const char *state, const char *verb, const char *legal) "job %p in state %s; applying verb %s (%s)"
|
||||
job_completed(void *job, int ret, int jret) "job %p ret %d corrected ret %d"
|
||||
|
||||
# job-qmp.c
|
||||
qmp_job_cancel(void *job) "job %p"
|
||||
qmp_job_pause(void *job) "job %p"
|
||||
qmp_job_resume(void *job) "job %p"
|
||||
qmp_job_complete(void *job) "job %p"
|
||||
qmp_job_finalize(void *job) "job %p"
|
||||
qmp_job_dismiss(void *job) "job %p"
|
||||
|
||||
|
||||
### Guest events, keep at bottom
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue