X-Git-Url: http://wpitchoune.net/gitweb/?p=psensor-pkg-debian.git;a=blobdiff_plain;f=src%2Flib%2Fhdd.h;h=c24ceb5cb77988f7a49b6a2d0482a59d99e391e1;hp=6c31800fea5f57bc23fbc44085a075ef341c62b9;hb=bd7036af56a4b61b2b473dccbeac5e26f78b57da;hpb=f055e7507526592d3a74c652f5f053701614c9c0 diff --git a/src/lib/hdd.h b/src/lib/hdd.h index 6c31800..c24ceb5 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-2016 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