so this class can be inherited. Signed-off-by: Philippe Mathieu-Daudé <f4...@amsat.org> --- include/hw/sd/sdhci.h | 12 ++++++++++++ 1 file changed, 12 insertions(+)
diff --git a/include/hw/sd/sdhci.h b/include/hw/sd/sdhci.h index 4a9c3e9175..a80b7c0424 100644 --- a/include/hw/sd/sdhci.h +++ b/include/hw/sd/sdhci.h @@ -124,4 +124,16 @@ typedef struct SDHCIState { #define SYSBUS_SDHCI(obj) \ OBJECT_CHECK(SDHCIState, (obj), TYPE_SYSBUS_SDHCI) +typedef struct { + /*< private >*/ + BusClass parent_class; + /*< public >*/ + DeviceRealize parent_realize; +} SDHCICommonClass; + +#define SYSBUS_SDHCI_COMMON_CLASS(klass) \ + OBJECT_CLASS_CHECK(SDHCICommonClass, (klass), TYPE_SYSBUS_SDHCI) +#define SYSBUS_SDHCI_COMMON_GET_CLASS(obj) \ + OBJECT_GET_CLASS(SDHCICommonClass, (obj), TYPE_SYSBUS_SDHCI) + #endif /* SDHCI_H */ -- 2.15.1