diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2019-07-22 17:13:23 +0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-08-21 16:29:57 +0200 |
commit | 81d8ccb1bea4fb9eaaf4c8e30bd4021180a9a39f (patch) | |
tree | 4f0002c5da0e89a390594e525140ffb6c6ea4727 /include | |
parent | 90629122d2ef536290882c71ca16bac3df842ca1 (diff) | |
download | qemu-81d8ccb1bea4fb9eaaf4c8e30bd4021180a9a39f.zip qemu-81d8ccb1bea4fb9eaaf4c8e30bd4021180a9a39f.tar.gz qemu-81d8ccb1bea4fb9eaaf4c8e30bd4021180a9a39f.tar.bz2 |
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')
-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 db30653..65ba596 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 |