X-Git-Url: https://git.wpitchoune.net/gitweb/?p=psensor.git;a=blobdiff_plain;f=src%2Flib%2Fpsensor.h;h=012bd128d8c03dc5d27877dabbc6adde36588355;hp=3b18a66a3404dc24e01694bd8ef3de71add8ba0b;hb=9cd75dc72c567208d839e73ee6e4ecf484a08b7c;hpb=46297c7c3a1226beeae7cbc4a03e227bd926e8ce diff --git a/src/lib/psensor.h b/src/lib/psensor.h index 3b18a66..012bd12 100644 --- a/src/lib/psensor.h +++ b/src/lib/psensor.h @@ -19,13 +19,14 @@ #ifndef _PSENSOR_PSENSOR_H_ #define _PSENSOR_PSENSOR_H_ -#include "config.h" #include +#include "config.h" #ifdef HAVE_ATASMART #include #endif +#include "bool.h" #include "color.h" #include "log.h" #include "measure.h" @@ -73,7 +74,7 @@ struct psensor { struct color *color; /* Whether the graph sensor is displayed. */ - unsigned int enabled; + bool enabled; /* see psensor_type */ unsigned int type; @@ -85,7 +86,7 @@ struct psensor { double min; /* Whether alarm alert is enabled for this sensor */ - unsigned int alarm_enabled; + bool alarm_enabled; int alarm_high_threshold; int alarm_low_threshold; @@ -110,7 +111,7 @@ struct psensor { char *url; - unsigned int appindicator_enabled; + bool appindicator_enabled; }; struct psensor *psensor_create(char *id,