aboutsummaryrefslogtreecommitdiff
path: root/module.h
diff options
context:
space:
mode:
authorMichael Roth <mdroth@linux.vnet.ibm.com>2011-07-19 14:50:31 -0500
committerLuiz Capitulino <lcapitulino@gmail.com>2011-07-21 16:48:13 -0300
commitc7aa841e9f75f0ff77fec9f918779b1951ab6b9d (patch)
tree9aa037a54bbfa3dc0bff60b283f40c6f87a28f3a /module.h
parent54d83804a1f69e932e014842e7e7a4744334123d (diff)
downloadqemu-c7aa841e9f75f0ff77fec9f918779b1951ab6b9d.zip
qemu-c7aa841e9f75f0ff77fec9f918779b1951ab6b9d.tar.gz
qemu-c7aa841e9f75f0ff77fec9f918779b1951ab6b9d.tar.bz2
qapi: add module init types for qapi
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com> Signed-off-by: Luiz Capitulino <lcapitulino@gmail.com>
Diffstat (limited to 'module.h')
-rw-r--r--module.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/module.h b/module.h
index 9263f1c..ef66730 100644
--- a/module.h
+++ b/module.h
@@ -24,12 +24,14 @@ typedef enum {
MODULE_INIT_BLOCK,
MODULE_INIT_DEVICE,
MODULE_INIT_MACHINE,
+ MODULE_INIT_QAPI,
MODULE_INIT_MAX
} module_init_type;
#define block_init(function) module_init(function, MODULE_INIT_BLOCK)
#define device_init(function) module_init(function, MODULE_INIT_DEVICE)
#define machine_init(function) module_init(function, MODULE_INIT_MACHINE)
+#define qapi_init(function) module_init(function, MODULE_INIT_QAPI)
void register_module_init(void (*fn)(void), module_init_type type);