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:
parent
e91830b121
commit
1a3bae794b
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user