mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
sclpconsole: Use TYPE_* constants
This will make future conversion to use OBJECT_DECLARE* easier. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Acked-by: Cornelia Huck <cohuck@redhat.com> Reviewed-by: Li Qiang <liq3ea@gmail.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-Id: <20200826184334.4120620-5-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
@@ -355,7 +355,7 @@ static void console_class_init(ObjectClass *klass, void *data)
|
||||
}
|
||||
|
||||
static const TypeInfo sclp_console_info = {
|
||||
.name = "sclplmconsole",
|
||||
.name = TYPE_SCLPLM_CONSOLE,
|
||||
.parent = TYPE_SCLP_EVENT,
|
||||
.instance_size = sizeof(SCLPConsoleLM),
|
||||
.class_init = console_class_init,
|
||||
|
||||
@@ -271,7 +271,7 @@ static void console_class_init(ObjectClass *klass, void *data)
|
||||
}
|
||||
|
||||
static const TypeInfo sclp_console_info = {
|
||||
.name = "sclpconsole",
|
||||
.name = TYPE_SCLP_CONSOLE,
|
||||
.parent = TYPE_SCLP_EVENT,
|
||||
.instance_size = sizeof(SCLPConsole),
|
||||
.class_init = console_class_init,
|
||||
|
||||
Reference in New Issue
Block a user