diff options
author | Michael Roth <mdroth@linux.vnet.ibm.com> | 2011-07-19 14:50:31 -0500 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@gmail.com> | 2011-07-21 16:48:13 -0300 |
commit | c7aa841e9f75f0ff77fec9f918779b1951ab6b9d (patch) | |
tree | 9aa037a54bbfa3dc0bff60b283f40c6f87a28f3a /module.h | |
parent | 54d83804a1f69e932e014842e7e7a4744334123d (diff) | |
download | qemu-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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |