/**
 * storaged_linux_logical_volume_object_new:
 *
 * Create a new LogicalVolume object.
 *
 * Returns: A #StoragedLinuxLogicalVolumeObject object. Free with g_object_unref().
 */
StoragedLinuxLogicalVolumeObject *
storaged_linux_logical_volume_object_new (StoragedDaemon                 *daemon,
                                          StoragedLinuxVolumeGroupObject *volume_group,
                                          const gchar                    *name)
{
  g_return_val_if_fail (STORAGED_IS_DAEMON (daemon), NULL);
  g_return_val_if_fail (STORAGED_IS_LINUX_VOLUME_GROUP_OBJECT (volume_group), NULL);
  g_return_val_if_fail (name != NULL, NULL);

  return STORAGED_LINUX_LOGICAL_VOLUME_OBJECT (g_object_new (STORAGED_TYPE_LINUX_LOGICAL_VOLUME_OBJECT,
                                                             "daemon", daemon,
                                                             "volumegroup", volume_group,
                                                             "name", name,
                                                             NULL));
}
/**
 * storaged_linux_volume_group_object_get_name:
 * @object: A #StoragedLinuxVolumeGroupObject.
 *
 * Gets the name for @object.
 *
 * Returns: (transfer none): The name for object. Do not free, the string belongs to @object.
 */
const gchar *
storaged_linux_volume_group_object_get_name (StoragedLinuxVolumeGroupObject *object)
{
    g_return_val_if_fail (STORAGED_IS_LINUX_VOLUME_GROUP_OBJECT (object), NULL);
    return object->name;
}
/**
 * storaged_linux_volume_group_object_get_daemon:
 * @object: A #StoragedLinuxVolumeGroupObject.
 *
 * Gets the daemon used by @object.
 *
 * Returns: A #StoragedDaemon. Do not free, the object is owned by @object.
 */
StoragedDaemon *
storaged_linux_volume_group_object_get_daemon (StoragedLinuxVolumeGroupObject *object)
{
    g_return_val_if_fail (STORAGED_IS_LINUX_VOLUME_GROUP_OBJECT (object), NULL);
    return object->daemon;
}