tmisu

Notification to stdout daemon
git clone https://git.inz.fi/tmisu/
Log | Files | Refs | README | LICENSE

commit 36fa8833a91a20fe2cf0e3f4b0997fb79e40f468
parent a3460748bee3a9a00c08c00d9137287d3afe03de
Author: Sweets <Sweets@users.noreply.github.com>
Date:   Sun, 26 Apr 2020 14:19:18 -0700

Add macaroni

Diffstat:
Mcallbacks.c | 18++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)

diff --git a/callbacks.c b/callbacks.c @@ -61,13 +61,19 @@ flush: return; unhandled: +#ifdef DEBUG print("Unhandled: %s %s\n", method, sender); +#else + return; +#endif } void bus_acquired(GDBusConnection *connection, const gchar *name, gpointer user_data) { +#ifdef DEBUG print("%s\n", "Bus has been acquired."); +#endif guint registered_object; registered_object = g_dbus_connection_register_object(connection, @@ -78,14 +84,19 @@ void bus_acquired(GDBusConnection *connection, const gchar *name, NULL, NULL); - if (!registered_object) + if (!registered_object) { +#ifdef DEBUG print("%s\n", "Unable to register."); +#endif + } } void name_acquired(GDBusConnection *connection, const gchar *name, gpointer user_data) { dbus_connection = connection; +#ifdef DEBUG print("%s\n", "Name has been acquired."); +#endif } void name_lost(GDBusConnection *connection, const gchar *name, @@ -97,7 +108,10 @@ void name_lost(GDBusConnection *connection, const gchar *name, "Unable to connect to acquire org.freedesktop.Notifications", "could not connect to dbus."); exit(1); - } else + } +#ifdef DEBUG + else print("%s\n", "Successfully acquired org.freedesktop.Notifications"); +#endif }