X-Git-Url: http://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fpsensor.h;h=a04c0acc9ff5c5becd2204846ca0f358c4b96fd0;hb=138f4d6a450e4ead5da85fdef006e48e906223d8;hp=cec6d0fc89cec804c1c80cdceae57e3ce22fa107;hpb=d019b476f28501c1f180d662fae0ca279e57e719;p=psensor.git diff --git a/src/lib/psensor.h b/src/lib/psensor.h index cec6d0f..a04c0ac 100644 --- a/src/lib/psensor.h +++ b/src/lib/psensor.h @@ -19,17 +19,12 @@ #ifndef _PSENSOR_PSENSOR_H_ #define _PSENSOR_PSENSOR_H_ -#include +#include -#include "config.h" -#ifdef HAVE_ATASMART -#include -#endif - -#include "bool.h" -#include "color.h" +#include +#include +#include #include -#include "measure.h" enum psensor_type { /* type of sensor values */ @@ -76,11 +71,6 @@ struct psensor { /* Name of the chip. */ char *chip; - /* lm-sensor */ - const sensors_chip_name *iname; - - const sensors_feature *feature; - /* Maximum length of 'values' */ int values_max_length; @@ -115,24 +105,15 @@ struct psensor { void (*cb_alarm_raised)(struct psensor *, void *); void *cb_alarm_raised_data; -#ifdef HAVE_NVIDIA - /* Nvidia id for the nvctrl */ - int nvidia_id; -#endif #ifdef HAVE_LIBATIADL /* AMD id for the aticonfig */ int amd_id; #endif -#ifdef HAVE_ATASMART - SkDisk *disk; -#endif void *provider_data; void (*provider_data_free_fct)(void *); char *url; - - bool appindicator_enabled; }; struct psensor *psensor_create(char *id,