[gnome-disk-utility] Parse and export the LinuxDmmpParameters D-Bus property
- From: David Zeuthen <davidz src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-disk-utility] Parse and export the LinuxDmmpParameters D-Bus property
- Date: Wed, 27 Jan 2010 16:33:10 +0000 (UTC)
commit 2f6338b711d25172177fc58dbc8d81131eab990d
Author: David Zeuthen <davidz redhat com>
Date: Wed Jan 27 11:14:17 2010 -0500
Parse and export the LinuxDmmpParameters D-Bus property
src/gdu/gdu-device.c | 10 ++++++++++
src/gdu/gdu-device.h | 1 +
2 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/src/gdu/gdu-device.c b/src/gdu/gdu-device.c
index adbbbda..10eaca6 100644
--- a/src/gdu/gdu-device.c
+++ b/src/gdu/gdu-device.c
@@ -189,6 +189,7 @@ typedef struct
gchar *linux_dmmp_name;
gchar **linux_dmmp_slaves;
+ gchar *linux_dmmp_parameters;
} DeviceProperties;
@@ -516,6 +517,8 @@ collect_props (const char *key,
props->linux_dmmp_slaves[n] = g_strdup (object_paths->pdata[n]);
props->linux_dmmp_slaves[n] = NULL;
}
+ else if (strcmp (key, "LinuxDmmpParameters") == 0)
+ props->linux_dmmp_parameters = g_strdup (g_value_get_string (value));
else
handled = FALSE;
@@ -597,6 +600,7 @@ device_properties_free (DeviceProperties *props)
g_free (props->linux_dmmp_name);
g_strfreev (props->linux_dmmp_slaves);
+ g_free (props->linux_dmmp_parameters);
g_free (props);
}
@@ -1563,6 +1567,12 @@ gdu_device_linux_dmmp_get_slaves (GduDevice *device)
return device->priv->props->linux_dmmp_slaves;
}
+const char *
+gdu_device_linux_dmmp_get_parameters (GduDevice *device)
+{
+ return device->priv->props->linux_dmmp_parameters;
+}
+
/* ---------------------------------------------------------------------------------------------------- */
gboolean
diff --git a/src/gdu/gdu-device.h b/src/gdu/gdu-device.h
index b68b22e..4b29d0b 100644
--- a/src/gdu/gdu-device.h
+++ b/src/gdu/gdu-device.h
@@ -202,6 +202,7 @@ gchar **gdu_device_linux_lvm2_pv_get_group_logical_volumes (GduDevice *devic
const char *gdu_device_linux_dmmp_component_get_holder (GduDevice *device);
const char *gdu_device_linux_dmmp_get_name (GduDevice *device);
char **gdu_device_linux_dmmp_get_slaves (GduDevice *device);
+const char *gdu_device_linux_dmmp_get_parameters (GduDevice *device);
gboolean gdu_device_drive_ata_smart_get_is_available (GduDevice *device);
guint64 gdu_device_drive_ata_smart_get_time_collected (GduDevice *device);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]