X-Git-Url: http://git.wpitchoune.net/gitweb/?p=psensor.git;a=blobdiff_plain;f=src%2Flib%2Fhdd.h;h=b4e2a0db08fde939c4d2b3d8f2207c51bde69119;hp=08aa851051551f214afe59283eb2d6745941ca49;hb=ab393ba7bba2961e61856f42778bd05e563d78b1;hpb=8b71ec661efef4e00a454dc4d7168b6bddab32e7 diff --git a/src/lib/hdd.h b/src/lib/hdd.h index 08aa851..b4e2a0d 100644 --- a/src/lib/hdd.h +++ b/src/lib/hdd.h @@ -19,12 +19,24 @@ #ifndef _PSENSOR_HDD_H_ #define _PSENSOR_HDD_H_ +#include #include #include -#ifdef HAVE_ATASMART -void atasmart_psensor_list_append(struct psensor ***sensors, int values_length); -void atasmart_psensor_list_update(struct psensor **sensors); +#if defined(HAVE_ATASMART) && HAVE_ATASMART + +static inline bool atasmart_is_supported(void) { return true; } + +void atasmart_psensor_list_append(struct psensor ***, int); +void atasmart_psensor_list_update(struct psensor **); + +#else + +static inline bool atasmart_is_supported(void) { return false; } + +static inline void atasmart_psensor_list_append(struct psensor ***s, int n) {} +static inline void atasmart_psensor_list_update(struct psensor **s) {} + #endif void hddtemp_psensor_list_append(struct psensor ***sensors, int values_length);