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 /include | |
parent | f5723ab66560a10f8461ac223e3d8369c10dc964 (diff) | |
download | qemu-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 'include')
-rw-r--r-- | include/qemu/module.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/qemu/module.h b/include/qemu/module.h index b595f15..9cd305d 100644 --- a/include/qemu/module.h +++ b/include/qemu/module.h @@ -134,4 +134,21 @@ void module_load_qom_all(void); */ #define module_opts(name) modinfo(opts, name) +/* + * module info database + * + * scripts/modinfo-generate.c will build this using the data collected + * by scripts/modinfo-collect.py + */ +typedef struct QemuModinfo QemuModinfo; +struct QemuModinfo { + const char *name; + const char *arch; + const char **objs; + const char **deps; + const char **opts; +}; +extern const QemuModinfo qemu_modinfo[]; +void module_init_info(const QemuModinfo *info); + #endif |