summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mandi_daemon.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mandi_daemon.c b/src/mandi_daemon.c
index da7136e..d11580d 100644
--- a/src/mandi_daemon.c
+++ b/src/mandi_daemon.c
@@ -204,7 +204,9 @@ static int mandi_daemon_init_watch(mandi_daemon_t *daemon) {
static dbus_bool_t mandi_daemon_add_watch(DBusWatch *watch, void *data) {
mandi_daemon_t *daemon = (mandi_daemon_t *) data;
if (dbus_watch_get_flags(watch) & DBUS_WATCH_READABLE) {
+#ifdef DEBUG
fprintf(stderr, "mandi_daemon_add_watch(): READABLE\n");
+#endif
daemon->bus_read_watch = watch;
daemon->bus_read_fd = dbus_watch_get_fd(daemon->bus_read_watch);
}
@@ -213,13 +215,17 @@ static dbus_bool_t mandi_daemon_add_watch(DBusWatch *watch, void *data) {
}
static void mandi_daemon_toggle_watch(DBusWatch *watch, void *data) {
+#ifdef DEBUG
fprintf(stderr, "mandi_daemon_toggle_watch()\n");
+#endif
/* FIXME : do we need to do something here ? */
}
static void mandi_daemon_remove_watch(DBusWatch *watch, void *data) {
if (dbus_watch_get_flags(watch) & DBUS_WATCH_READABLE) {
+#ifdef DEBUG
fprintf(stderr, "mandi_daemon_remove_watch(): READABLE\n");
+#endif
/* FIXME : do we need to do something here ? */
}
}