From 3fb356cc86461a14450802e14fa79e8436dbbf31 Mon Sep 17 00:00:00 2001 From: Alex Bennée Date: Mon, 4 Nov 2019 13:18:36 +0000 Subject: tcg plugins: expose an API version concept This is a very simple versioning API which allows the plugin infrastructure to check the API a plugin was built against. We also expose a min/cur API version to the plugin via the info block in case it wants to avoid using old deprecated APIs in the future. Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Peter Maydell Reviewed-by: Robert Foley --- plugins/plugin.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins/plugin.h') diff --git a/plugins/plugin.h b/plugins/plugin.h index 5482168d79..1aa29dcadd 100644 --- a/plugins/plugin.h +++ b/plugins/plugin.h @@ -14,6 +14,8 @@ #include +#define QEMU_PLUGIN_MIN_VERSION 0 + /* global state */ struct qemu_plugin_state { QTAILQ_HEAD(, qemu_plugin_ctx) ctxs; -- cgit v1.2.3-55-g7522