summaryrefslogtreecommitdiffstats
path: root/atasmart.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-04-02 23:44:25 +0200
committerLennart Poettering <lennart@poettering.net>2009-04-02 23:44:25 +0200
commit4e6c8eb3eb054030a3a4149043aed1cb5b1aab4d (patch)
tree7a1bf41266c373d57b1f2a1da3be193d5de32345 /atasmart.h
parent3890fef931af32b2006bdd2660c23cc9d9c6b1b1 (diff)
add functions to save/load smart data blobs directly
Diffstat (limited to 'atasmart.h')
-rw-r--r--atasmart.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/atasmart.h b/atasmart.h
index 096af93..db2d208 100644
--- a/atasmart.h
+++ b/atasmart.h
@@ -182,6 +182,10 @@ int sk_disk_smart_status(SkDisk *d, SkBool *good);
* sk_disk_check_power_mode() to check wether the disk is sleeping and
* skip the read if so. */
int sk_disk_smart_read_data(SkDisk *d);
+
+int sk_disk_get_blob(SkDisk *d, const void **blob, size_t *size);
+int sk_disk_set_blob(SkDisk *d, const void *blob, size_t size);
+
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);
@@ -193,11 +197,12 @@ int sk_disk_smart_get_power_on(SkDisk *d, uint64_t *mseconds);
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_smart_get_temperature(SkDisk *d, uint64_t *mkelvin);
/* Get overall status. This integrates the values of a couple of fields into a single overall status */
int sk_disk_smart_get_overall(SkDisk *d, SkSmartOverall *overall);
+/* Dump the current parsed status to STDOUT */
int sk_disk_dump(SkDisk *d);
void sk_disk_free(SkDisk *d);