mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
Rework vm_state_change notifiers (Jan Kiszka)
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6402 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
5c047c0d3f
commit
9781e0401a
4 changed files with 12 additions and 37 deletions
6
sysemu.h
6
sysemu.h
|
@ -12,16 +12,12 @@ extern uint8_t qemu_uuid[];
|
|||
#define UUID_FMT "%02hhx%02hhx%02hhx%02hhx-%02hhx%02hhx-%02hhx%02hhx-%02hhx%02hhx-%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx"
|
||||
|
||||
typedef struct vm_change_state_entry VMChangeStateEntry;
|
||||
typedef void VMChangeStateHandler(void *opaque, int running);
|
||||
typedef void VMStopHandler(void *opaque, int reason);
|
||||
typedef void VMChangeStateHandler(void *opaque, int running, int reason);
|
||||
|
||||
VMChangeStateEntry *qemu_add_vm_change_state_handler(VMChangeStateHandler *cb,
|
||||
void *opaque);
|
||||
void qemu_del_vm_change_state_handler(VMChangeStateEntry *e);
|
||||
|
||||
int qemu_add_vm_stop_handler(VMStopHandler *cb, void *opaque);
|
||||
void qemu_del_vm_stop_handler(VMStopHandler *cb, void *opaque);
|
||||
|
||||
void vm_start(void);
|
||||
void vm_stop(int reason);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue