X-Git-Url: https://git.wpitchoune.net/gitweb/?p=psensor.git;a=blobdiff_plain;f=src%2Flib%2Famd.h;h=682f8ebfbc6ea9f9bec482f29be9f252fcf53308;hp=b5a33ad549a7323c8f755777bf4d990211a6ac22;hb=c1e20f2631a1249720e9c75d753eacfcb0f6c7b9;hpb=45c8086f97097df36ba8cd0552f152be80f79b12 diff --git a/src/lib/amd.h b/src/lib/amd.h index b5a33ad..682f8eb 100644 --- a/src/lib/amd.h +++ b/src/lib/amd.h @@ -1,5 +1,6 @@ /* * Copyright (C) 2010-2011 thgreasi@gmail.com, jeanfi@gmail.com + * Copyright (C) 2012-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,22 +20,25 @@ #ifndef _PSENSOR_AMD_H_ #define _PSENSOR_AMD_H_ -#include "psensor.h" +#include +#include -/* - Updates temperatures of AMD sensors. -*/ -void amd_psensor_list_update(struct psensor **sensors); +#if defined(HAVE_LIBATIADL) && HAVE_LIBATIADL -/* - Adds AMD sensors to a given list of sensors. +static inline bool amd_is_supported(void) { return true; } - Returns the new allocated list of sensors if sensors have been added - otherwise returns 'sensors'. The list is 'NULL' terminated. - */ -struct psensor **amd_psensor_list_add(struct psensor **sensors, - int values_max_length); +void amd_psensor_list_update(struct psensor **s); +void amd_psensor_list_append(struct psensor ***s, int n); +void amd_cleanup(void); + +#else -void amd_cleanup(); +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