diff options
author | Marc-André Lureau | 2019-07-22 15:13:23 +0200 |
---|---|---|
committer | Paolo Bonzini | 2019-08-21 16:29:57 +0200 |
commit | 81d8ccb1bea4fb9eaaf4c8e30bd4021180a9a39f (patch) | |
tree | 4f0002c5da0e89a390594e525140ffb6c6ea4727 /include/qemu | |
parent | module: use g_hash_table_add() (diff) | |
download | qemu-81d8ccb1bea4fb9eaaf4c8e30bd4021180a9a39f.tar.gz qemu-81d8ccb1bea4fb9eaaf4c8e30bd4021180a9a39f.tar.xz qemu-81d8ccb1bea4fb9eaaf4c8e30bd4021180a9a39f.zip |
module: return success on module load
Let the caller know of load success.
Note that this also changes slightly the behaviour of the function to
try loading on subsequent calls if the previous ones failed.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/qemu')
-rw-r--r-- | include/qemu/module.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/qemu/module.h b/include/qemu/module.h index db3065381d..65ba596e46 100644 --- a/include/qemu/module.h +++ b/include/qemu/module.h @@ -65,6 +65,6 @@ void register_module_init(void (*fn)(void), module_init_type type); void register_dso_module_init(void (*fn)(void), module_init_type type); void module_call_init(module_init_type type); -void module_load_one(const char *prefix, const char *lib_name); +bool module_load_one(const char *prefix, const char *lib_name); #endif |