diff options
| author | David Zeuthen <davidz@redhat.com> | 2009-04-06 11:53:14 -0400 |
|---|---|---|
| committer | David Zeuthen <davidz@redhat.com> | 2009-04-06 11:53:14 -0400 |
| commit | 1e99b9056e89172471005fefe264701bce8e1778 (patch) | |
| tree | 08771deccee6df196a03453d4b0a351910bae343 | |
| parent | 4f42a06438fbbb667b46079b537a4f8d219b52aa (diff) | |
| download | gnome-disk-utility-1e99b9056e89172471005fefe264701bce8e1778.tar.gz gnome-disk-utility-1e99b9056e89172471005fefe264701bce8e1778.tar.xz gnome-disk-utility-1e99b9056e89172471005fefe264701bce8e1778.zip | |
update to latest daemon API for some ATA SMART changes
| -rw-r--r-- | src/gdu/gdu-device.c | 26 | ||||
| -rw-r--r-- | src/gdu/gdu-device.h | 8 | ||||
| -rw-r--r-- | src/palimpsest/gdu-section-health.c | 2 |
3 files changed, 24 insertions, 12 deletions
diff --git a/src/gdu/gdu-device.c b/src/gdu/gdu-device.c index 2bca4d4..78d774b 100644 --- a/src/gdu/gdu-device.c +++ b/src/gdu/gdu-device.c @@ -2325,6 +2325,9 @@ op_ata_smart_historical_data_cb (DBusGProxy *proxy, GPtrArray *historical_data, void gdu_device_drive_ata_smart_get_historical_data (GduDevice *device, + guint64 since, + guint64 until, + guint64 spacing, GduDeviceDriveAtaSmartGetHistoricalDataCompletedFunc callback, gpointer user_data) { @@ -2335,28 +2338,31 @@ gdu_device_drive_ata_smart_get_historical_data (GduDevice data->callback = callback; data->user_data = user_data; - /* TODO: since, until */ org_freedesktop_DeviceKit_Disks_Device_drive_ata_smart_get_historical_data_async (device->priv->proxy, - 0, - 0, - op_ata_smart_historical_data_cb, - data); + since, + until, + spacing, + op_ata_smart_historical_data_cb, + data); } GList * gdu_device_drive_ata_smart_get_historical_data_sync (GduDevice *device, + guint64 since, + guint64 until, + guint64 spacing, GError **error) { GList *ret; GPtrArray *historical_data; ret = NULL; - /* TODO: since, until */ if (!org_freedesktop_DeviceKit_Disks_Device_drive_ata_smart_get_historical_data (device->priv->proxy, - 0, - 0, - &historical_data, - error)) + since, + until, + spacing, + &historical_data, + error)) goto out; ret = op_ata_smart_historical_data_compute_ret (historical_data); diff --git a/src/gdu/gdu-device.h b/src/gdu/gdu-device.h index f4f655d..4cdb97b 100644 --- a/src/gdu/gdu-device.h +++ b/src/gdu/gdu-device.h @@ -344,11 +344,17 @@ void gdu_device_op_cancel_job (GduDevice *device, /* ---------------------------------------------------------------------------------------------------- */ void gdu_device_drive_ata_smart_get_historical_data (GduDevice *device, + guint64 since, + guint64 until, + guint64 spacing, GduDeviceDriveAtaSmartGetHistoricalDataCompletedFunc callback, gpointer user_data); GList *gdu_device_drive_ata_smart_get_historical_data_sync (GduDevice *device, - GError **error); + guint64 since, + guint64 until, + guint64 spacing, + GError **error); /* ---------------------------------------------------------------------------------------------------- */ diff --git a/src/palimpsest/gdu-section-health.c b/src/palimpsest/gdu-section-health.c index 598478f..8073a20 100644 --- a/src/palimpsest/gdu-section-health.c +++ b/src/palimpsest/gdu-section-health.c @@ -961,7 +961,7 @@ health_details_action_callback (GtkAction *action, gpointer user_data) HealthGraphData *data; data = g_new0 (HealthGraphData, 1); /* TODO: do this async */ - data->history = gdu_device_drive_ata_smart_get_historical_data_sync (device, NULL); + data->history = gdu_device_drive_ata_smart_get_historical_data_sync (device, 0, 0, 0, NULL); GtkWidget *history_label; history_label = gtk_label_new (_("View:")); |
