mpc-bar

macOS menu bar client for the Music Player Daemon
Log | Files | Refs | README | LICENSE

song_format.h (549B)


      1 // SPDX-License-Identifier: GPL-2.0-or-later
      2 // Copyright The Music Player Daemon Project
      3 
      4 #ifndef MPC_SONG_FORMAT_H
      5 #define MPC_SONG_FORMAT_H
      6 
      7 #include "Compiler.h"
      8 
      9 struct mpd_song;
     10 
     11 /**
     12  * Pretty-print song metadata into a string using the given format
     13  * specification.
     14  *
     15  * @param song the song object
     16  * @param format the format string
     17  * @return the resulting string to be freed by free(); NULL if
     18  * no format string group produced any output
     19  */
     20 gcc_malloc
     21 char *
     22 format_song(const struct mpd_song *song,
     23 	    const char *format);
     24 
     25 #endif