summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinfirit <[email protected]>2015-06-30 03:03:48 +0200
committerinfirit <[email protected]>2015-07-07 15:36:36 +0200
commita9fe9c4239c98f08a8815985cbcc485d729b0c2c (patch)
tree027954e02d88aa5c78548c1ed86fd5e37e8e4d84
parent1b77af04e668f92ebfa594b4c42587d1647696d2 (diff)
downloadmate-sensors-applet-a9fe9c4239c98f08a8815985cbcc485d729b0c2c.tar.bz2
mate-sensors-applet-a9fe9c4239c98f08a8815985cbcc485d729b0c2c.tar.xz
Fix implicit declaration of function
-rw-r--r--plugins/mbmon/mbmon-plugin.c1
-rw-r--r--sensors-applet/sensors-applet.h17
2 files changed, 18 insertions, 0 deletions
diff --git a/plugins/mbmon/mbmon-plugin.c b/plugins/mbmon/mbmon-plugin.c
index c9d5fd3..fc7b854 100644
--- a/plugins/mbmon/mbmon-plugin.c
+++ b/plugins/mbmon/mbmon-plugin.c
@@ -36,6 +36,7 @@
#include <arpa/inet.h>
#endif
+#include <unistd.h>
#include "mbmon-plugin.h"
const gchar *plugin_name = "mbmon";
diff --git a/sensors-applet/sensors-applet.h b/sensors-applet/sensors-applet.h
index fda92b5..d2e0e20 100644
--- a/sensors-applet/sensors-applet.h
+++ b/sensors-applet/sensors-applet.h
@@ -183,4 +183,21 @@ void sensors_applet_find_sensors(SensorsApplet *sensors_applet,
const gchar *path,
SensorsInterfaceTestSensorFunc test_sensor);
+gboolean sensors_applet_add_sensor(SensorsApplet *sensors_applet,
+ const gchar *path,
+ const gchar *id,
+ const gchar *label,
+ const gchar *interface,
+ SensorType type,
+ gboolean enable,
+ gdouble low_value,
+ gdouble high_value,
+ gboolean alarm_enable,
+ const gchar *low_alarm_command,
+ const gchar *high_alarm_command,
+ gint alarm_timeout,
+ gdouble multiplier,
+ gdouble offset,
+ IconType icon_type,
+ const gchar *graph_color);
#endif /* SENSORS_APPLET_H */