summaryrefslogtreecommitdiffstats
path: root/smart.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-06-29 21:18:28 +0200
committerLennart Poettering <lennart@poettering.net>2008-06-29 21:18:28 +0200
commit09358348c50656e7c6d508767cee3996e8a3d77f (patch)
tree45e8cb478c2c915f4d05d30071f0cf7375003cd2 /smart.h
parentc74c5f0633f963364228ad9c827ff8c9c04fff4b (diff)
s/SkDevice/SkDisk
Diffstat (limited to 'smart.h')
-rw-r--r--smart.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/smart.h b/smart.h
index 93b7810..cc96efb 100644
--- a/smart.h
+++ b/smart.h
@@ -3,7 +3,7 @@
#include <glib.h>
-typedef struct SkDevice SkDevice;
+typedef struct SkDisk SkDisk;
typedef struct SkIdentifyParsedData {
gchar serial[21];
@@ -73,25 +73,25 @@ typedef struct SkSmartAttribute {
* considered an ABI change. So take care when you copy it. */
} SkSmartAttribute;
-typedef void (*SkSmartAttributeCallback)(SkDevice *d, const SkSmartAttribute *a, gpointer userdata);
+typedef void (*SkSmartAttributeCallback)(SkDisk *d, const SkSmartAttribute *a, gpointer userdata);
-int sk_disk_open(const gchar *name, SkDevice **d);
+int sk_disk_open(const gchar *name, SkDisk **d);
-int sk_disk_check_power_mode(SkDevice *d, gboolean *mode);
+int sk_disk_check_power_mode(SkDisk *d, gboolean *mode);
-int sk_disk_identify_is_available(SkDevice *d, gboolean *b);
-int sk_disk_identify_parse(SkDevice *d, const SkIdentifyParsedData **data);
+int sk_disk_identify_is_available(SkDisk *d, gboolean *b);
+int sk_disk_identify_parse(SkDisk *d, const SkIdentifyParsedData **data);
-int sk_disk_smart_is_available(SkDevice *d, gboolean *b);
-int sk_disk_smart_read_data(SkDevice *d);
-int sk_disk_smart_parse(SkDevice *d, const SkSmartParsedData **data);
-int sk_disk_smart_parse_attributes(SkDevice *d, SkSmartAttributeCallback cb, gpointer userdata);
+int sk_disk_smart_is_available(SkDisk *d, gboolean *b);
+int sk_disk_smart_read_data(SkDisk *d);
+int sk_disk_smart_parse(SkDisk *d, const SkSmartParsedData **data);
+int sk_disk_smart_parse_attributes(SkDisk *d, SkSmartAttributeCallback cb, gpointer userdata);
-int sk_disk_get_size(SkDevice *d, guint64 *bytes);
+int sk_disk_get_size(SkDisk *d, guint64 *bytes);
-int sk_disk_dump(SkDevice *d);
+int sk_disk_dump(SkDisk *d);
-void sk_disk_free(SkDevice *d);
+void sk_disk_free(SkDisk *d);
const char* sk_smart_offline_data_collection_status_to_string(SkSmartOfflineDataCollectionStatus status);
const char* sk_smart_attribute_unit_to_string(SkSmartAttributeUnit unit);