]> git.proxmox.com Git - mirror_qemu.git/commit
modules: dependencies infrastructure
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 19 Oct 2020 07:52:20 +0000 (09:52 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 21 Oct 2020 13:46:14 +0000 (15:46 +0200)
commit6f13fa7a9825e85e35927cbb51a992e158798424
tree64fbe8eae1cafb1a1c58bb0c5a7272bff1281e54
parent9ed345a14ed3cfa2345cabfe8759e62463c356a1
modules: dependencies infrastructure

Allow modules depending on other modules.

module_load_file() gets the option to export symbols (by not adding the
G_MODULE_BIND_LOCAL flag).

module_load_one() will check the module dependency list to figure (a)
whenever are other modules must be loaded first, or (b) the module
should export the symbols.

The dependencies are specificed as static list in the source code for
now as I expect the list will stay small.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-id: 20201019075224.14803-11-kraxel@redhat.com
util/module.c