/** * storage_block_new: * @object: A #CockpitStorageObject * * Creates a new #StorageBlock instance. * * Returns: A new #StorageBlock. Free with g_object_unref(). */ CockpitStorageBlock * storage_block_new (StorageObject *object) { g_return_val_if_fail (IS_STORAGE_OBJECT (object), NULL); return COCKPIT_STORAGE_BLOCK (g_object_new (TYPE_STORAGE_BLOCK, "object", object, NULL)); }
/** * storage_mdraid_new: * @object: A #CockpitStorageObject * * Creates a new #StorageMDRaid instance. * * Returns: A new #StorageMDRaid. Free with g_object_unref(). */ CockpitStorageMDRaid * storage_mdraid_new (StorageObject *object) { g_return_val_if_fail (IS_STORAGE_OBJECT (object), NULL); return COCKPIT_STORAGE_MDRAID (g_object_new (TYPE_STORAGE_MDRAID, "object", object, NULL)); }
/** * storage_volume_group_new: * @object: A #CockpitStorageObject * * Creates a new #StorageVolumeGroup instance. * * Returns: A new #StorageVolumeGroup. Free with g_object_unref(). */ CockpitStorageVolumeGroup * storage_volume_group_new (StorageObject *object) { g_return_val_if_fail (IS_STORAGE_OBJECT (object), NULL); return COCKPIT_STORAGE_VOLUME_GROUP (g_object_new (TYPE_STORAGE_VOLUME_GROUP, "object", object, NULL)); }
/** * storage_logical_volume_new: * @object: A #CockpitStorageObject * * Creates a new #StorageLogicalVolume instance. * * Returns: A new #StorageLogicalVolume. Free with g_object_unref(). */ CockpitStorageLogicalVolume * storage_logical_volume_new (StorageObject *object) { g_return_val_if_fail (IS_STORAGE_OBJECT (object), NULL); return COCKPIT_STORAGE_LOGICAL_VOLUME (g_object_new (TYPE_STORAGE_LOGICAL_VOLUME, "object", object, NULL)); }