summaryrefslogtreecommitdiff
path: root/plugins/notify
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <waker@users.sourceforge.net>2014-05-07 23:39:22 +0200
committerGravatar Alexey Yakovenko <waker@users.sourceforge.net>2014-05-07 23:39:22 +0200
commit1b49c36a819f05ed64276642a16883c6e7c24a98 (patch)
tree8abaffeb0e6b71996e2f5490a9a2997b56b0dc0d /plugins/notify
parent7946384fab1acb23d3dd1a88fd370fcd1a3e68fe (diff)
updated/improved/added licensing info in many plugins, added COPYING files, some plugins got upgraded from GPL to ZLIB
Diffstat (limited to 'plugins/notify')
-rw-r--r--plugins/notify/COPYING17
-rw-r--r--plugins/notify/notify.c37
2 files changed, 21 insertions, 33 deletions
diff --git a/plugins/notify/COPYING b/plugins/notify/COPYING
new file mode 100644
index 00000000..8b6f3fd7
--- /dev/null
+++ b/plugins/notify/COPYING
@@ -0,0 +1,17 @@
+OSD Notification plugin for DeaDBeeF Player
+Copyright (C) 2009-2014 Alexey Yakovenko and contributors
+
+This program is free software; you can redistribute it and/or
+modify it under the terms of the GNU General Public License
+as published by the Free Software Foundation; either version 2
+of the License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
diff --git a/plugins/notify/notify.c b/plugins/notify/notify.c
index 86f7ee50..0364ea0a 100644
--- a/plugins/notify/notify.c
+++ b/plugins/notify/notify.c
@@ -1,6 +1,6 @@
/*
- DeaDBeeF - ultimate music player for GNU/Linux systems with X11
- Copyright (C) 2009-2013 Alexey Yakovenko <waker@users.sourceforge.net>
+ OSD Notification plugin for DeaDBeeF Player
+ Copyright (C) 2009-2014 Alexey Yakovenko and contributors
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
@@ -87,36 +87,6 @@ notify_thread (void *ctx) {
}
-#if 0
-static void
-notify_marshal_dict_byte(DBusMessageIter *iter, const char *key, char value)
-{
- DBusMessageIter entry, variant;
-
- if (!key || !value) return;
-
- dbus_message_iter_open_container(iter, DBUS_TYPE_DICT_ENTRY, NULL, &entry);
- dbus_message_iter_append_basic(&entry, DBUS_TYPE_STRING, &key);
- dbus_message_iter_open_container(&entry, DBUS_TYPE_VARIANT, "y", &variant);
- dbus_message_iter_append_basic(&variant, DBUS_TYPE_BYTE, &value);
- dbus_message_iter_close_container(&entry, &variant);
- dbus_message_iter_close_container(iter, &entry);
-}
-
-static void
-notify_marshal_dict_string(DBusMessageIter *iter, const char *key, const char *value)
-{
- DBusMessageIter entry, variant;
-
- dbus_message_iter_open_container(iter, DBUS_TYPE_DICT_ENTRY, "sv", &entry);
- dbus_message_iter_append_basic(&entry, DBUS_TYPE_STRING, &key);
- dbus_message_iter_open_container(&entry, DBUS_TYPE_VARIANT, "s", &variant);
- dbus_message_iter_append_basic(&variant, DBUS_TYPE_STRING, &value);
- dbus_message_iter_close_container(&entry, &variant);
- dbus_message_iter_close_container(iter, &entry);
-}
-#endif
-
static void
esc_xml (const char *cmd, char *esc, int size) {
const char *src = cmd;
@@ -343,7 +313,8 @@ DB_misc_t plugin = {
.plugin.name = "OSD Notify",
.plugin.descr = "Displays notifications when new track starts.\nRequires dbus and notification daemon to be running.\nNotification daemon should be provided by your desktop environment.\n",
.plugin.copyright =
- "Copyright (C) 2009-2013 Alexey Yakovenko <waker@users.sourceforge.net>\n"
+ "OSD Notification plugin for DeaDBeeF Player\n"
+ "Copyright (C) 2009-2014 Alexey Yakovenko and contributors\n"
"\n"
"This program is free software; you can redistribute it and/or\n"
"modify it under the terms of the GNU General Public License\n"