diff options
| author | Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com> | 2026-06-15 12:35:04 -0700 |
|---|---|---|
| committer | Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com> | 2026-06-16 10:59:05 -0700 |
| commit | 32a0ddf36a51c80529056dc7e4cce892870e5261 (patch) | |
| tree | 32ef5810bcf7ca7f3369ad81f1a43c7f629c5a7d /plugins | |
| parent | de7c973f5531b6c9d85bc2265fa9faada3610c4d (diff) | |
| download | qemu-32a0ddf36a51c80529056dc7e4cce892870e5261.tar.gz qemu-32a0ddf36a51c80529056dc7e4cce892870e5261.zip | |
plugins: remove qemu_plugin_id_t from qemu_plugin_udata_cb_t
We can now rely on userdata being always available to pass down this id
if needed.
In our plugins, only tests/tcg/plugins/reset.c was using it.
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Link: https://lore.kernel.org/qemu-devel/20260615193526.2883349-6-pierrick.bouvier@oss.qualcomm.com
Signed-off-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/core.c | 2 | ||||
| -rw-r--r-- | plugins/loader.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/core.c b/plugins/core.c index 21a3c5b15c..b0532e8d0d 100644 --- a/plugins/core.c +++ b/plugins/core.c @@ -147,7 +147,7 @@ static void plugin_cb__udata(enum qemu_plugin_event ev) QLIST_FOREACH_SAFE_RCU(cb, &plugin.cb_lists[ev], entry, next) { qemu_plugin_udata_cb_t func = cb->f.udata; - func(cb->ctx->id, cb->udata); + func(cb->udata); } break; default: diff --git a/plugins/loader.c b/plugins/loader.c index 0d587c344c..b10ebe8cc0 100644 --- a/plugins/loader.c +++ b/plugins/loader.c @@ -339,7 +339,7 @@ static void plugin_reset_destroy__locked(struct qemu_plugin_reset_data *data) if (data->reset) { g_assert(ctx->resetting); if (data->cb) { - data->cb(ctx->id, data->userdata); + data->cb(data->userdata); } ctx->resetting = false; g_free(data); @@ -358,7 +358,7 @@ static void plugin_reset_destroy__locked(struct qemu_plugin_reset_data *data) g_assert(success); QTAILQ_REMOVE(&plugin.ctxs, ctx, entry); if (data->cb) { - data->cb(ctx->id, data->userdata); + data->cb(data->userdata); } if (!g_module_close(ctx->handle)) { warn_report("%s: %s", __func__, g_module_error()); |
