X-Git-Url: http://git.cascardo.info/?p=cascardo%2Fpubsub-bot.git;a=blobdiff_plain;f=status.c;fp=status.c;h=30e76076a95499cc08094bd7c2bf2eaee56d4534;hp=5b32daa1f4a210ed349e77b3e79bafc24aaee8d6;hb=575ce6c86bdc456ac8472a6ff5b1c52fda9d5cdd;hpb=731f5070afd01cb53103791daae5bbfd9a879801 diff --git a/status.c b/status.c index 5b32daa..30e7607 100644 --- a/status.c +++ b/status.c @@ -502,6 +502,14 @@ gettune (DBusConnection *conn, DBusMessage *msg, void *data) pushtune (data, "http://jabber.org/protocol/tune", tune); return DBUS_HANDLER_RESULT_HANDLED; } + else if (dbus_message_is_signal (msg, "org.MetaPlayer.player", "stop")) + { + printf("tune stopped\n"); + tune = iks_new ("tune"); + iks_insert_attrib (tune, "xmlns", "http://jabber.org/protocol/tune"); + pushtune (data, "http://jabber.org/protocol/tune", tune); + return DBUS_HANDLER_RESULT_HANDLED; + } else return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; }