MPD 0.20.6

- Main Page
- Namespaces
- Data Structures
- Files

- File List
- Globals

format.h
Go to the documentation of this file.
1 /*
2 * music player command (mpc)
3 * Copyright 2003-2017 The Music Player Daemon Project
4 * http://www.musicpd.org
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 */
20
21 #ifndef MPC_FORMAT_H
22 #define MPC_FORMAT_H
23
24 #include "Compiler.h"
25
26 struct mpd_song;
27
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31
42 gcc_malloc
43 char *
44 format_object(const char *format, const void *object,
45 const char *(*getter)(const void *object, const char *name));
46
47 #ifdef __cplusplus
48 }
49 #endif
50
51 #endif
gcc_malloc
#define gcc_malloc
Definition: Compiler.h:112
Compiler.h
format_object
gcc_malloc char * format_object(const char *format, const void *object, const char *(*getter)(const void *object, const char *name))
Pretty-print an object into a string using the given format specification.
name
const Partition const char * name
Definition: Count.hxx:34