/*
- * Copyright (C) 2010-2012 jeanfi@gmail.com
+ * Copyright (C) 2010-2013 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
struct color *color;
/* Whether the graph sensor is displayed. */
- bool enabled;
+ bool graph_enabled;
/* see psensor_type */
unsigned int type;
#ifdef HAVE_ATASMART
SkDisk *disk;
#endif
-
char *url;
bool appindicator_enabled;
struct psensor **psensor_list_add(struct psensor **sensors,
struct psensor *sensor);
+struct psensor **psensor_list_copy(struct psensor **);
+
void psensor_set_current_value(struct psensor *sensor, double value);
void psensor_set_current_measure(struct psensor *sensor, double value,
struct timeval tv);
-double psensor_get_current_value(struct psensor *sensor);
+double psensor_get_current_value(const struct psensor *);
struct measure *psensor_get_current_measure(struct psensor *sensor);
double celcius_to_fahrenheit(double c);
double fahrenheit_to_celcius(double c);
+char *psensor_current_value_to_str(const struct psensor *, unsigned int);
void psensor_log_measures(struct psensor **sensors);