mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
job: Add query-jobs QMP command
This adds a minimal query-jobs implementation that shouldn't pose many design questions. It can later be extended to expose more information, and especially job-specific information. Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
1a90bc8128
commit
456273b024
4 changed files with 104 additions and 1 deletions
|
@ -392,6 +392,9 @@ JobType job_type(const Job *job);
|
|||
/** Returns the enum string for the JobType of a given Job. */
|
||||
const char *job_type_str(const Job *job);
|
||||
|
||||
/** Returns true if the job should not be visible to the management layer. */
|
||||
bool job_is_internal(Job *job);
|
||||
|
||||
/** Returns whether the job is scheduled for cancellation. */
|
||||
bool job_is_cancelled(Job *job);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue