X-Git-Url: http://wpitchoune.net/gitweb/?p=psensor-pkg-debian.git;a=blobdiff_plain;f=src%2Flib%2Famd.h;h=682f8ebfbc6ea9f9bec482f29be9f252fcf53308;hp=d7dde400c90e36a00740079f3e638e107cb16590;hb=bd7036af56a4b61b2b473dccbeac5e26f78b57da;hpb=48da1ac5531838d157762882ee455cec4da05728 diff --git a/src/lib/amd.h b/src/lib/amd.h index d7dde40..682f8eb 100644 --- a/src/lib/amd.h +++ b/src/lib/amd.h @@ -1,6 +1,6 @@ /* * Copyright (C) 2010-2011 thgreasi@gmail.com, jeanfi@gmail.com - * Copyright (C) 2012-2014 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 @@ -20,12 +20,25 @@ #ifndef _PSENSOR_AMD_H_ #define _PSENSOR_AMD_H_ -#include "psensor.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_cleanup(); +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