summaryrefslogtreecommitdiffstats
path: root/atasmart.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-03-19 00:37:38 +0100
committerLennart Poettering <lennart@poettering.net>2009-03-19 00:37:38 +0100
commit70f4d5a5a95c61c64b12ac9c9ab5870bc96aec96 (patch)
treeca5dde3d2db1bcd8985eca3383ac3525a6105143 /atasmart.h
parent465171fc0bf544264d454c5b05f31b6cb9659afa (diff)
add high-level sk_disk_smart_get_{power_on, temperature, bad}() calls
Diffstat (limited to 'atasmart.h')
-rw-r--r--atasmart.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/atasmart.h b/atasmart.h
index efef1ab..4d4073b 100644
--- a/atasmart.h
+++ b/atasmart.h
@@ -171,6 +171,15 @@ int sk_disk_smart_parse(SkDisk *d, const SkSmartParsedData **data);
int sk_disk_smart_parse_attributes(SkDisk *d, SkSmartAttributeParseCallback cb, void* userdata);
int sk_disk_smart_self_test(SkDisk *d, SkSmartSelfTest test);
+/* High level API to get the power on time */
+int sk_disk_smart_get_power_on(SkDisk *d, uint64_t *mseconds);
+
+/* High level API to get the number of bad sectors (i.e. pending and reallocated) */
+int sk_disk_smart_get_bad(SkDisk *d, uint64_t *sectors);
+
+/* High level API to get the temperature */
+int sk_disk_smart_get_temperature(SkDisk *d, uint64_t *kelvin);
+
int sk_disk_dump(SkDisk *d);
void sk_disk_free(SkDisk *d);