+static void on_slog_enabled_cb(GConfClient *client,
+ guint cnxn_id,
+ GConfEntry *entry,
+ gpointer user_data)
+{
+ struct psensor **sensors;
+
+ sensors = (struct psensor **)user_data;
+
+ log_debug("cbk_slog_enabled");
+
+ if (is_slog_enabled())
+ slog_init(NULL, sensors);
+ else
+ slog_close(NULL, sensors);
+}
+