mirror of
https://github.com/qemu/qemu.git
synced 2026-05-18 11:26:37 +00:00
system/runstate: Document qemu_add_vm_change_state_handler()
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Message-Id: <20250703173248.44995-4-philmd@linaro.org>
This commit is contained in:
@@ -14,6 +14,16 @@ void runstate_replay_enable(void);
|
||||
typedef void VMChangeStateHandler(void *opaque, bool running, RunState state);
|
||||
typedef int VMChangeStateHandlerWithRet(void *opaque, bool running, RunState state);
|
||||
|
||||
/**
|
||||
* qemu_add_vm_change_state_handler:
|
||||
* @cb: the callback to invoke
|
||||
* @opaque: user data passed to the callback
|
||||
*
|
||||
* Register a callback function that is invoked when the vm starts or stops
|
||||
* running.
|
||||
*
|
||||
* Returns: an entry to be freed using qemu_del_vm_change_state_handler()
|
||||
*/
|
||||
VMChangeStateEntry *qemu_add_vm_change_state_handler(VMChangeStateHandler *cb,
|
||||
void *opaque);
|
||||
VMChangeStateEntry *qemu_add_vm_change_state_handler_prio(
|
||||
|
||||
Reference in New Issue
Block a user