aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2016-09-22 12:16:51 +0100
committerPeter Maydell <peter.maydell@linaro.org>2016-09-22 12:16:51 +0100
commitffd455ae41772d92a7c52f58eed3fb89f04b6a60 (patch)
tree11bb6115fe6d2ca723c274ace27a48f264434048 /include
parentb98bbea2d94dc5902acaa3a5dd7f9057cc82cdb1 (diff)
parent819cec0114eeca80444a21f2e3526ef62d729385 (diff)
downloadqemu-ffd455ae41772d92a7c52f58eed3fb89f04b6a60.zip
qemu-ffd455ae41772d92a7c52f58eed3fb89f04b6a60.tar.gz
qemu-ffd455ae41772d92a7c52f58eed3fb89f04b6a60.tar.bz2
Merge remote-tracking branch 'remotes/maxreitz/tags/pull-block-2016-09-20' into staging
Block patches for 2.8 # gpg: Signature made Tue 20 Sep 2016 21:29:53 BST # gpg: using RSA key 0xF407DB0061D5CF40 # gpg: Good signature from "Max Reitz <mreitz@redhat.com>" # Primary key fingerprint: 91BE B60A 30DB 3E88 57D1 1829 F407 DB00 61D5 CF40 * remotes/maxreitz/tags/pull-block-2016-09-20: iotest 055: refactor and speed up commit: get the overlay node before manipulating the backing chain blockdev: Modularize nfs block driver blockdev: Add dynamic module loading for block drivers blockdev: Add dynamic generation of module_block.h blockdev: prepare iSCSI block driver for dynamic loading qemu-img: add skip option to dd qemu-img: add the 'dd' subcommand Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include')
-rw-r--r--include/qemu/module.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/qemu/module.h b/include/qemu/module.h
index 2370708..dc2c9d4 100644
--- a/include/qemu/module.h
+++ b/include/qemu/module.h
@@ -52,9 +52,12 @@ typedef enum {
#define qapi_init(function) module_init(function, MODULE_INIT_QAPI)
#define type_init(function) module_init(function, MODULE_INIT_QOM)
+#define block_module_load_one(lib) module_load_one("block-", lib)
+
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);
#endif