s390_flic: Move KVMS390FLICState typedef to header
Move typedef closer to the type check macros, to make it easier to convert the code to OBJECT_DEFINE_TYPE() in the future. Acked-by: Cornelia Huck <cohuck@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Tested-By: Roman Bolshakov <r.bolshakov@yadro.com> Message-Id: <20200825192110.3528606-22-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
parent
3c03b56370
commit
b13f9bdf31
@ -29,12 +29,12 @@
|
||||
#define FLIC_FAILED (-1UL)
|
||||
#define FLIC_SAVEVM_VERSION 1
|
||||
|
||||
typedef struct KVMS390FLICState {
|
||||
struct KVMS390FLICState{
|
||||
S390FLICState parent_obj;
|
||||
|
||||
uint32_t fd;
|
||||
bool clear_io_supported;
|
||||
} KVMS390FLICState;
|
||||
};
|
||||
|
||||
static KVMS390FLICState *s390_get_kvm_flic(S390FLICState *fs)
|
||||
{
|
||||
|
@ -75,6 +75,7 @@ typedef struct S390FLICStateClass {
|
||||
} S390FLICStateClass;
|
||||
|
||||
#define TYPE_KVM_S390_FLIC "s390-flic-kvm"
|
||||
typedef struct KVMS390FLICState KVMS390FLICState;
|
||||
#define KVM_S390_FLIC(obj) \
|
||||
OBJECT_CHECK(KVMS390FLICState, (obj), TYPE_KVM_S390_FLIC)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user