Share smartctl support between different platforms

This commit is contained in:
Andrea Mazzoleni 2015-01-24 19:43:01 +01:00
parent 467bf0256b
commit f706da1cc6
4 changed files with 88 additions and 116 deletions

View file

@ -121,5 +121,14 @@ char* strdup_nofail(const char* str);
*/
void malloc_fail(size_t size);
/****************************************************************************/
/* smartctl */
/**
* Reads smartctl attributes from a stream.
* Returns -1 on error.
*/
int smartctl_attribute(FILE* f, uint64_t* smart, char* serial);
#endif