Revision f7897430 module.h
b/module.h | ||
---|---|---|
17 | 17 |
/* This should not be used directly. Use block_init etc. instead. */ |
18 | 18 |
#define module_init(function, type) \ |
19 | 19 |
static void __attribute__((constructor)) do_qemu_init_ ## function(void) { \ |
20 |
register_module_init(function, type); \
|
|
20 |
register_module_init(function, type); \
|
|
21 | 21 |
} |
22 | 22 |
|
23 | 23 |
typedef enum { |
24 | 24 |
MODULE_INIT_BLOCK, |
25 |
MODULE_INIT_DEVICE |
|
25 |
MODULE_INIT_DEVICE, |
|
26 |
MODULE_INIT_MAX |
|
26 | 27 |
} module_init_type; |
27 | 28 |
|
28 | 29 |
#define block_init(function) module_init(function, MODULE_INIT_BLOCK) |
Also available in: Unified diff