-/* Conky, a system monitor, based on torsmo
+/* -*- mode: c; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: t -*-
+ * vim: ts=4 sw=4 noet ai cindent syntax=c
+ *
+ * Conky, a system monitor, based on torsmo
*
* Any original torsmo code is licensed under the BSD license
*
*
* Please see COPYING for details
*
- * Copyright (c) 2005-2008 Brenden Matthews, Philip Kovacs, et. al.
+ * Copyright (c) 2005-2010 Brenden Matthews, Philip Kovacs, et. al.
* (see AUTHORS)
* All rights reserved.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
- * $Id$ */
+ */
+
+#include "config.h"
+#include "conky.h"
+#include "logging.h"
#include <bmp/dbus.hh>
#include <dbus/dbus-glib.h>
-#include <stdio.h>
-#include <string.h>
-
-#include "conky.h"
-
#define DBUS_TYPE_G_STRING_VALUE_HASHTABLE \
(dbus_g_type_get_map("GHashTable", G_TYPE_STRING, G_TYPE_VALUE))
bus = dbus_g_bus_get(DBUS_BUS_SESSION, &error);
if (bus == NULL) {
- ERR("BMPx error 1: %s\n", error->message);
+ NORM_ERR("BMPx error 1: %s\n", error->message);
fail(error);
return;
}
remote_object = dbus_g_proxy_new_for_name(bus, BMP_DBUS_SERVICE,
BMP_DBUS_PATH, BMP_DBUS_INTERFACE);
if (!remote_object) {
- ERR("BMPx error 2: %s\n", error->message);
+ NORM_ERR("BMPx error 2: %s\n", error->message);
fail(error);
return;
}
if (dbus_g_proxy_call(remote_object, "GetCurrentTrack", &error,
G_TYPE_INVALID, G_TYPE_INT, ¤t_track, G_TYPE_INVALID)) {
} else {
- ERR("BMPx error 3: %s\n", error->message);
+ NORM_ERR("BMPx error 3: %s\n", error->message);
fail(error);
return;
}
current_info->bmpx.uri =
g_value_get_string(g_hash_table_lookup(metadata, "location"));
} else {
- ERR("BMPx error 4: %s\n", error->message);
+ NORM_ERR("BMPx error 4: %s\n", error->message);
fail(error);
return;
}