X-Git-Url: http://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fhdd.h;h=b4e2a0db08fde939c4d2b3d8f2207c51bde69119;hb=ab393ba7bba2961e61856f42778bd05e563d78b1;hp=6c31800fea5f57bc23fbc44085a075ef341c62b9;hpb=af47d522aa7957879bd87a44a416bb25544ed9f5;p=psensor.git diff --git a/src/lib/hdd.h b/src/lib/hdd.h index 6c31800..b4e2a0d 100644 --- a/src/lib/hdd.h +++ b/src/lib/hdd.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010-2012 jeanfi@gmail.com + * Copyright (C) 2010-2014 jeanfi@gmail.com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as @@ -19,11 +19,27 @@ #ifndef _PSENSOR_HDD_H_ #define _PSENSOR_HDD_H_ -#include "psensor.h" +#include +#include +#include -struct psensor **hdd_psensor_list_add(struct psensor **sensors, - int values_max_length); +#if defined(HAVE_ATASMART) && HAVE_ATASMART -void hdd_psensor_list_update(struct psensor **sensors); +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); +void hddtemp_psensor_list_update(struct psensor **sensors); #endif