diff options
author | Stefan Hajnoczi <stefanha@redhat.com> | 2019-06-20 18:37:07 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2019-07-08 16:00:26 +0200 |
commit | 60dbc5a1c5176269669ffc26c081ab2cfb7f12f7 (patch) | |
tree | 6d03666bb9bf575826f6654293c0327f6e5128cf /include/sysemu | |
parent | df34fe314b5da628bc9a2664fb1b887bc0a6cc6d (diff) |
vl: add qemu_add_vm_change_state_handler_prio()
Add an API for registering vm change state handlers with a well-defined
ordering. This is necessary when handlers depend on each other.
Small coding style fixes are included to make checkpatch.pl happy.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include/sysemu')
-rw-r--r-- | include/sysemu/sysemu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sysemu/sysemu.h b/include/sysemu/sysemu.h index 61579ae71e..984c439ac9 100644 --- a/include/sysemu/sysemu.h +++ b/include/sysemu/sysemu.h @@ -29,6 +29,8 @@ typedef void VMChangeStateHandler(void *opaque, int running, RunState state); VMChangeStateEntry *qemu_add_vm_change_state_handler(VMChangeStateHandler *cb, void *opaque); +VMChangeStateEntry *qemu_add_vm_change_state_handler_prio( + VMChangeStateHandler *cb, void *opaque, int priority); void qemu_del_vm_change_state_handler(VMChangeStateEntry *e); void vm_state_notify(int running, RunState state); |