#include "lmsensor.h"
#include "notify_cmd.h"
#include <pmutex.h>
+#include <pudisks2.h>
#include "slog.h"
#include "ui_pref.h"
#include "ui_graph.h"
#ifdef HAVE_LIBATIADL
amd_psensor_list_update(sensors);
#endif
+#ifdef HAVE_LIBUDISKS2
+ udisks2_psensor_list_update(sensors);
+#endif
psensor_log_measures(sensors);
associate_cb_alarm_raised(struct psensor **sensors, struct ui_psensor *ui)
{
struct psensor **sensor_cur = sensors;
+
while (*sensor_cur) {
struct psensor *s = *sensor_cur;
static void associate_preferences(struct psensor **sensors)
{
struct psensor **sensor_cur = sensors;
+
while (*sensor_cur) {
char *n;
struct psensor *s = *sensor_cur;
dir = get_psensor_user_dir();
if (!dir)
- return ;
+ return;
path = malloc(strlen(dir)+1+strlen("log")+1);
sprintf(path, "%s/%s", dir, "log");
#ifdef HAVE_GTOP
sensors = cpu_psensor_list_add(sensors, 600);
#endif
+#ifdef HAVE_LIBUDISKS2
+ udisks2_psensor_list_add(&sensors, 600);
+#endif
}
associate_preferences(sensors);