summaryrefslogtreecommitdiff
path: root/plugins/udisks2
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-10-27 18:10:02 +0200
committerraveit65 <[email protected]>2021-12-11 15:25:56 +0100
commit8da9bfdbc16d5516ec6088f27088caac7780374f (patch)
tree7ab6c588bea6fab7a76803cf886b897c5e3d0d03 /plugins/udisks2
parenta935712451ee1d7d9eb466294c75c5abe727115c (diff)
downloadmate-sensors-applet-8da9bfdbc16d5516ec6088f27088caac7780374f.tar.bz2
mate-sensors-applet-8da9bfdbc16d5516ec6088f27088caac7780374f.tar.xz
Use a blank line at most
Diffstat (limited to 'plugins/udisks2')
-rw-r--r--plugins/udisks2/udisks2-plugin.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/plugins/udisks2/udisks2-plugin.c b/plugins/udisks2/udisks2-plugin.c
index f8a0c41..39d2d9a 100644
--- a/plugins/udisks2/udisks2-plugin.c
+++ b/plugins/udisks2/udisks2-plugin.c
@@ -31,7 +31,6 @@ https://developer.gnome.org/gio/stable/index.html
*/
-
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif /* HAVE_CONFIG_H */
@@ -40,7 +39,6 @@ https://developer.gnome.org/gio/stable/index.html
#include <gio/gio.h>
#include "udisks2-plugin.h"
-
/* remove // from next line for syslog debug */
//#define UD2PD 1
@@ -48,7 +46,6 @@ https://developer.gnome.org/gio/stable/index.html
#include <syslog.h>
#endif
-
#define UDISKS2_BUS_NAME "org.freedesktop.UDisks2"
#define UDISKS2_INTERFACE_NAME "org.freedesktop.DBus.ObjectManager"
#define UDISKS2_DEVICE_INTERFACE_NAME "org.freedesktop.UDisks2.Drive"
@@ -57,7 +54,6 @@ https://developer.gnome.org/gio/stable/index.html
#define UDISKS2_PROPERTIES_INTERFACE "org.freedesktop.DBus.Properties"
#define UDISKS2_OBJECT_PATH "/org/freedesktop/UDisks2"
-
/* Info about a single sensor */
typedef struct _DevInfo {
gchar *path;
@@ -67,7 +63,6 @@ typedef struct _DevInfo {
GError *error;
} DevInfo;
-
const gchar *plugin_name = "udisks2";
/* a container for the devices found to have smart enabled */
@@ -76,7 +71,6 @@ GHashTable *devices = NULL;
/* This is a global variable for convenience */
GDBusConnection *connection = NULL;
-
static void update_device (DevInfo *info) {
GError *error = NULL;
GVariant *tempgvar = NULL;
@@ -301,7 +295,6 @@ syslog(LOG_ERR, "key value: %s", key);
propdict = g_variant_lookup_value (value, UDISKS2_DEVICE_INTERFACE_NAME, G_VARIANT_TYPE_DICTIONARY);
propdict2 = g_variant_lookup_value (value, UDISKS2_DEVICE_INTERFACE2_NAME, G_VARIANT_TYPE_DICTIONARY);
-
/* do we have the right ifname keys? */
if ((NULL != propdict) && (NULL != propdict2)) {
@@ -402,7 +395,6 @@ syslog(LOG_ERR, "b4 free3");
} /* end of while loop */
-
g_variant_unref (managed_objects);
g_clear_object (&proxy);
if (NULL == devices) {
@@ -435,7 +427,6 @@ static gdouble udisks2_plugin_get_sensor_value (const gchar *path,
return info->temp;
}
-
/* API functions */
const gchar *sensors_applet_plugin_name (void) {
return plugin_name;