mirror of
https://github.com/qemu/qemu.git
synced 2026-07-08 17:46:10 +00:00
plugins: add userdata for qemu_plugin_{uninstall, reset}
We do both at the same time because they internally use the same implementation. Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org> Link: https://lore.kernel.org/qemu-devel/20260615193526.2883349-3-pierrick.bouvier@oss.qualcomm.com Signed-off-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
This commit is contained in:
@@ -221,6 +221,7 @@ typedef void (*qemu_plugin_vcpu_discon_cb_t)(qemu_plugin_id_t id,
|
||||
* qemu_plugin_uninstall() - Uninstall a plugin
|
||||
* @id: this plugin's opaque ID
|
||||
* @cb: callback to be called once the plugin has been removed
|
||||
* @userdata: any plugin data to pass to the @cb
|
||||
*
|
||||
* Do NOT assume that the plugin has been uninstalled once this function
|
||||
* returns. Plugins are uninstalled asynchronously, and therefore the given
|
||||
@@ -229,12 +230,14 @@ typedef void (*qemu_plugin_vcpu_discon_cb_t)(qemu_plugin_id_t id,
|
||||
* Note: Calling this function from qemu_plugin_install() is a bug.
|
||||
*/
|
||||
QEMU_PLUGIN_API
|
||||
void qemu_plugin_uninstall(qemu_plugin_id_t id, qemu_plugin_simple_cb_t cb);
|
||||
void qemu_plugin_uninstall(qemu_plugin_id_t id, qemu_plugin_udata_cb_t cb,
|
||||
void *userdata);
|
||||
|
||||
/**
|
||||
* qemu_plugin_reset() - Reset a plugin
|
||||
* @id: this plugin's opaque ID
|
||||
* @cb: callback to be called once the plugin has been reset
|
||||
* @userdata: any plugin data to pass to the @cb
|
||||
*
|
||||
* Unregisters all callbacks for the plugin given by @id.
|
||||
*
|
||||
@@ -243,7 +246,8 @@ void qemu_plugin_uninstall(qemu_plugin_id_t id, qemu_plugin_simple_cb_t cb);
|
||||
* callbacks until @cb is called.
|
||||
*/
|
||||
QEMU_PLUGIN_API
|
||||
void qemu_plugin_reset(qemu_plugin_id_t id, qemu_plugin_simple_cb_t cb);
|
||||
void qemu_plugin_reset(qemu_plugin_id_t id, qemu_plugin_udata_cb_t cb,
|
||||
void *userdata);
|
||||
|
||||
/**
|
||||
* qemu_plugin_register_vcpu_init_cb() - register a vCPU initialization callback
|
||||
|
||||
Reference in New Issue
Block a user