X-Git-Url: http://git.wpitchoune.net/gitweb/?p=psensor.git;a=blobdiff_plain;f=src%2Flib%2Famd.h;h=ef77c2683ea9e54803a35d4f0b45853dd995fafe;hp=9cca6d228ae7c06f3f813f916f5ab6bc9e3ee680;hb=b50653aecc1a70ba5196bc37c31d154fdbdecf34;hpb=5c9357dcf9255eb434104c7574b13ec96161477a diff --git a/src/lib/amd.h b/src/lib/amd.h index 9cca6d2..ef77c26 100644 --- a/src/lib/amd.h +++ b/src/lib/amd.h @@ -20,12 +20,25 @@ #ifndef _PSENSOR_AMD_H_ #define _PSENSOR_AMD_H_ +#include #include -void amd_psensor_list_update(struct psensor **sensors); +#if defined(HAVE_LIBATIADL) && HAVE_LIBATIADL -void amd_psensor_list_append(struct psensor ***sensors, int values_max_length); +static inline bool amd_is_supported(void) { return true; } +void amd_psensor_list_update(struct psensor **s); +void amd_psensor_list_append(struct psensor ***s, int n); void amd_cleanup(void); +#else + +static inline bool amd_is_supported(void) { return false; } + +static inline void amd_psensor_list_update(struct psensor **s) {} +static inline void amd_psensor_list_append(struct psensor ***s, int n) {} +static inline void amd_cleanup(void) {} + +#endif + #endif