diff options
Diffstat (limited to 'mpd-notification.h')
| -rw-r--r-- | mpd-notification.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/mpd-notification.h b/mpd-notification.h index cd8b386..4068144 100644 --- a/mpd-notification.h +++ b/mpd-notification.h @@ -1,5 +1,5 @@ /* - * (C) 2011-2024 by Christian Hesse <mail@eworm.de> + * (C) 2011-2025 by Christian Hesse <mail@eworm.de> * * 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 @@ -32,16 +32,18 @@ /* systemd headers */ #ifdef HAVE_SYSTEMD #include <systemd/sd-daemon.h> -#endif +#endif /* HAVE_SYSTEMD */ -#include <iniparser.h> +#include <iniparser/iniparser.h> #include <libnotify/notify.h> #include <mpd/client.h> #ifdef HAVE_LIBAV #include <libavformat/avformat.h> +#ifdef HAVE_MAGIC #include <magic.h> -#endif +#endif /* HAVE_MAGIC */ +#endif /* HAVE_LIBAV */ #include "config.h" #include "version.h" @@ -56,8 +58,8 @@ void received_signal(int signal); /*** retrieve_artwork ***/ GdkPixbuf * retrieve_artwork(const char * music_dir, const char * uri); -/*** append_string ***/ -char * append_string(char * string, const char * format, const char delim, const char * s); +/*** format_text ***/ +char * format_text(const char* format, const char* title, const char* artist, const char* album, unsigned int duration); /*** main ***/ int main(int argc, char ** argv); |