verify parsing of all attributes
[platform/upstream/libatasmart.git] / atasmart.h
index 38590ff..c0baec5 100644 (file)
@@ -173,7 +173,7 @@ typedef enum SkSmartOverall  {
         SK_SMART_OVERALL_GOOD,
         SK_SMART_OVERALL_BAD_STATUS,     /* Smart Self Assessment negative */
         SK_SMART_OVERALL_BAD_SECTOR,     /* At least one bad sector */
-        SK_SMART_OVERALL_BAD_ATTRIBUTE,  /* At least one attribute exceeded its threshold */
+        SK_SMART_OVERALL_BAD_ATTRIBUTE,  /* At least one pre-fail attribute exceeded its threshold in the past or now */
         _SK_SMART_OVERALL_MAX
 
         /* This enum may be extended at any time without this being
@@ -213,6 +213,9 @@ 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 power cycle count */
+int sk_disk_smart_get_power_cycle(SkDisk *d, uint64_t *count);
+
 /* 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);