aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2021-06-24 12:38:05 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2021-07-09 18:20:27 +0200
commit5ebbfecc3e6fa443a506ec5fe65f0ca98973d404 (patch)
tree15cbc45b58d5a9f30b702c841b1481236b34c23f /util
parentf5723ab66560a10f8461ac223e3d8369c10dc964 (diff)
downloadqemu-5ebbfecc3e6fa443a506ec5fe65f0ca98973d404.zip
qemu-5ebbfecc3e6fa443a506ec5fe65f0ca98973d404.tar.gz
qemu-5ebbfecc3e6fa443a506ec5fe65f0ca98973d404.tar.bz2
modules: generate modinfo.c
Add script to generate C source with a small database containing the module meta-data. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Jose R. Ziviani <jziviani@suse.de> Message-Id: <20210624103836.2382472-4-kraxel@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'util')
-rw-r--r--util/module.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/util/module.c b/util/module.c
index eee8ff2..8d3e827 100644
--- a/util/module.c
+++ b/util/module.c
@@ -110,6 +110,17 @@ void module_call_init(module_init_type type)
}
#ifdef CONFIG_MODULES
+
+static const QemuModinfo module_info_stub[] = { {
+ /* end of list */
+} };
+static const QemuModinfo *module_info = module_info_stub;
+
+void module_init_info(const QemuModinfo *info)
+{
+ module_info = info;
+}
+
static int module_load_file(const char *fname, bool mayfail, bool export_symbols)
{
GModule *g_module;