diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2021-06-24 12:38:05 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-07-09 18:20:27 +0200 |
commit | 5ebbfecc3e6fa443a506ec5fe65f0ca98973d404 (patch) | |
tree | 15cbc45b58d5a9f30b702c841b1481236b34c23f /util/module.c | |
parent | f5723ab66560a10f8461ac223e3d8369c10dc964 (diff) |
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/module.c')
-rw-r--r-- | util/module.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/util/module.c b/util/module.c index eee8ff2de1..8d3e8275b9 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; |