Don't require a configured inet interface when resolving names
[libmpd.git] / src / libmpd-strfsong.h
blobe22381af98aa3bfe639e46922951e6c4a4cde1d2
1 /* libmpd (high level libmpdclient library)
2 * Copyright (C) 2004-2009 Qball Cow <qball@sarine.nl>
3 * Project homepage: http://gmpcwiki.sarine.nl/
5 * Based on mpc's songToFormatedString modified for glib and ncmpc
6 * (c) 2003-2004 by normalperson and Warren Dukes (shank@mercury.chem.pitt.edu)
7 * and Daniel Brown (danb@cs.utexas.edu)
8 * and Kalle Wallin (kaw@linux.se)
9 * and Qball Cow (Qball@qballcow.nl)
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License along
22 * with this program; if not, write to the Free Software Foundation, Inc.,
23 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
26 #ifndef __STRFSONG_H__
27 #define __STRFSONG_H__
29 #include "libmpd.h"
30 /**
31 * \ingroup Misc
32 * @param s A buffer to write the string in
33 * @param max The max length of the buffer
34 * @param format The markup string
35 * @param song A mpd_Song
37 * printfs a formatted string of a mpd_Song
39 * @returns The length of the new formatted string
42 unsigned int mpd_song_markup(char *s, unsigned int max, const char *format, mpd_Song * song);
44 #endif