diff options
author | Eduardo Habkost <ehabkost@redhat.com> | 2016-02-16 18:59:07 -0200 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2016-03-16 15:54:23 -0300 |
commit | 34294e2f545dae9f020b6d52e3929f4c4e45800c (patch) | |
tree | 93554d0af7120bb50751f0c86e191e6b05debced /include | |
parent | 0e6aac87fd0f5db2be57c36c03d67388577208a7 (diff) |
module: Rename machine_init() to opts_init()
The only remaining users of machine_init() only call
qemu_add_opts(). Rename machine_init() to opts_init() and move it
closer to the qemu_add_opts() calls on vl.c.
Cc: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Igor Mammedov <imammedo@redhat.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/qemu/module.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/qemu/module.h b/include/qemu/module.h index 85fafa2e79..2370708445 100644 --- a/include/qemu/module.h +++ b/include/qemu/module.h @@ -41,14 +41,14 @@ static void __attribute__((constructor)) do_qemu_init_ ## function(void) \ typedef enum { MODULE_INIT_BLOCK, - MODULE_INIT_MACHINE, + MODULE_INIT_OPTS, MODULE_INIT_QAPI, MODULE_INIT_QOM, MODULE_INIT_MAX } module_init_type; #define block_init(function) module_init(function, MODULE_INIT_BLOCK) -#define machine_init(function) module_init(function, MODULE_INIT_MACHINE) +#define opts_init(function) module_init(function, MODULE_INIT_OPTS) #define qapi_init(function) module_init(function, MODULE_INIT_QAPI) #define type_init(function) module_init(function, MODULE_INIT_QOM) |