[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 45/53] migration: Rename class type checking macros
From: |
Eduardo Habkost |
Subject: |
[PULL 45/53] migration: Rename class type checking macros |
Date: |
Thu, 27 Aug 2020 15:21:14 -0400 |
Rename the macros to make them consistent with the MIGRATION_OBJ
macro name.
This will make future conversion to OBJECT_DECLARE* easier.
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Tested-By: Roman Bolshakov <r.bolshakov@yadro.com>
Message-Id: <20200825192110.3528606-51-ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
---
migration/migration.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/migration/migration.h b/migration/migration.h
index 2ed55c4aef..ae497bd45a 100644
--- a/migration/migration.h
+++ b/migration/migration.h
@@ -114,11 +114,11 @@ void
fill_destination_postcopy_migration_info(MigrationInfo *info);
#define TYPE_MIGRATION "migration"
-#define MIGRATION_CLASS(klass) \
+#define MIGRATION_OBJ_CLASS(klass) \
OBJECT_CLASS_CHECK(MigrationClass, (klass), TYPE_MIGRATION)
#define MIGRATION_OBJ(obj) \
OBJECT_CHECK(MigrationState, (obj), TYPE_MIGRATION)
-#define MIGRATION_GET_CLASS(obj) \
+#define MIGRATION_OBJ_GET_CLASS(obj) \
OBJECT_GET_CLASS(MigrationClass, (obj), TYPE_MIGRATION)
typedef struct MigrationClass {
--
2.26.2
- [PULL 34/53] virtio-serial-bus: Move QOM macros to header, (continued)
- [PULL 34/53] virtio-serial-bus: Move QOM macros to header, Eduardo Habkost, 2020/08/27
- [PULL 36/53] auxbus: Move QOM macros to header, Eduardo Habkost, 2020/08/27
- [PULL 35/53] piix: Move QOM macros to header, Eduardo Habkost, 2020/08/27
- [PULL 38/53] pxa2xx: Move QOM macros to header, Eduardo Habkost, 2020/08/27
- [PULL 39/53] mptsas: Move QOM macros to header, Eduardo Habkost, 2020/08/27
- [PULL 41/53] vfio/pci: Move QOM macros to header, Eduardo Habkost, 2020/08/27
- [PULL 40/53] kvm: Move QOM macros to kvm.h, Eduardo Habkost, 2020/08/27
- [PULL 43/53] s390-virtio-ccw: Rename S390_MACHINE_CLASS macro, Eduardo Habkost, 2020/08/27
- [PULL 42/53] nubus: Rename class type checking macros, Eduardo Habkost, 2020/08/27
- [PULL 44/53] swim: Rename struct SWIM to Swim, Eduardo Habkost, 2020/08/27
- [PULL 45/53] migration: Rename class type checking macros,
Eduardo Habkost <=
- [PULL 47/53] nios2_iic: Use TYPE_ALTERA_IIC constant, Eduardo Habkost, 2020/08/27
- [PULL 46/53] etsec: Use TYPE_ETSEC_COMMON constant, Eduardo Habkost, 2020/08/27
- [PULL 49/53] sclpconsole: Use TYPE_* constants, Eduardo Habkost, 2020/08/27
- [PULL 48/53] amd_iommu: Use TYPE_AMD_IOMMU_PCI constant, Eduardo Habkost, 2020/08/27
- [PULL 51/53] tosa: Use TYPE_TOSA_MISC_GPIO constant, Eduardo Habkost, 2020/08/27
- [PULL 50/53] xlnx-zcu102: Use TYPE_ZCU102_MACHINE constant, Eduardo Habkost, 2020/08/27
- [PULL 52/53] ppce500: Use TYPE_PPC_E500_PCI_BRIDGE constant, Eduardo Habkost, 2020/08/27
- [PULL 53/53] dc390: Use TYPE_DC390_DEVICE constant, Eduardo Habkost, 2020/08/27
- Re: [PULL 00/53] Machine queue + QOM fixes and cleanups, Peter Maydell, 2020/08/28