diff options
author | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-01-22 17:15:29 +0000 |
---|---|---|
committer | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-01-22 17:15:29 +0000 |
commit | 9781e0401ad7d2d30e48fd532372d4ef80be58b6 (patch) | |
tree | 4660f374d3cd785ce476d45d9407fcd094e72c59 /sysemu.h | |
parent | 5c047c0d3f7d732620ece04d5f8574d19ea1626d (diff) | |
download | qemu-9781e0401ad7d2d30e48fd532372d4ef80be58b6.zip qemu-9781e0401ad7d2d30e48fd532372d4ef80be58b6.tar.gz qemu-9781e0401ad7d2d30e48fd532372d4ef80be58b6.tar.bz2 |
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
Diffstat (limited to 'sysemu.h')
-rw-r--r-- | sysemu.h | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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); |