X-Git-Url: https://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fpsensor.h;h=3b18a66a3404dc24e01694bd8ef3de71add8ba0b;hb=b0fbaa0cc4cdc38bc86e3739e5bc78d73ca063ec;hp=8d798e54b5427ead72753721011c71510ae22d4b;hpb=94cd6e094ffb603809880f854a71dcef093257e5;p=psensor.git diff --git a/src/lib/psensor.h b/src/lib/psensor.h index 8d798e5..3b18a66 100644 --- a/src/lib/psensor.h +++ b/src/lib/psensor.h @@ -72,8 +72,8 @@ struct psensor { /* Color of the sensor used for the graph */ struct color *color; - /* Whether the sensor is displayed in the graph */ - int enabled; + /* Whether the graph sensor is displayed. */ + unsigned int enabled; /* see psensor_type */ unsigned int type; @@ -87,10 +87,11 @@ struct psensor { /* Whether alarm alert is enabled for this sensor */ unsigned int alarm_enabled; - int alarm_high_thresold; + int alarm_high_threshold; + int alarm_low_threshold; - /* Whether the current value is bigger than 'alarm_high_thresold'. */ - int alarm_raised; + /* Whether an alarm is raised for this sensor */ + unsigned int alarm_raised; void (*cb_alarm_raised) (struct psensor *, void *); void *cb_alarm_raised_data; @@ -108,6 +109,8 @@ struct psensor { #endif char *url; + + unsigned int appindicator_enabled; }; struct psensor *psensor_create(char *id,