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 --- tests/plugin/empty.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/plugin/empty.c') diff --git a/tests/plugin/empty.c b/tests/plugin/empty.c index 3f60f69027..8fa6bacd93 100644 --- a/tests/plugin/empty.c +++ b/tests/plugin/empty.c @@ -13,6 +13,8 @@ #include +QEMU_PLUGIN_EXPORT int qemu_plugin_version = QEMU_PLUGIN_VERSION; + /* * Empty TB translation callback. * This allows us to measure the overhead of injecting and then -- cgit v1.2.3-55-g7522