MPD 0.20.6

- Main Page
- Namespaces
- Data Structures
- Files

- File List
- Globals

SongSticker.hxx
Go to the documentation of this file.
1 /*
2 * Copyright 2003-2017 The Music Player Daemon Project
3 * http://www.musicpd.org
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 */
19
20 #ifndef MPD_SONG_STICKER_HXX
21 #define MPD_SONG_STICKER_HXX
22
23 #include "Match.hxx"
24 #include "Compiler.h"
25
26 #include <string>
27
28 struct LightSong;
29 struct Sticker;
30 class Database;
31
37 gcc_pure
38 std::string
39 sticker_song_get_value(const LightSong &song, const char *name);
40
47 void
48 sticker_song_set_value(const LightSong &song,
49 const char *name, const char *value);
50
56 bool
57 sticker_song_delete(const char *uri);
58
59 bool
60 sticker_song_delete(const LightSong &song);
61
68 bool
69 sticker_song_delete_value(const LightSong &song, const char *name);
70
79 Sticker *
80 sticker_song_get(const LightSong &song);
81
93 void
94 sticker_song_find(const Database &db, const char *base_uri, const char *name,
95 StickerOperator op, const char *value,
96 void (*func)(const LightSong &song, const char *value,
97 void *user_data),
98 void *user_data);
99
100 #endif
sticker_song_get_value
gcc_pure std::string sticker_song_get_value(const LightSong &song, const char *name)
Returns one value from a song's sticker record.
Database
Definition: Interface.hxx:35
Match.hxx
sticker_song_find
void sticker_song_find(const Database &db, const char *base_uri, const char *name, StickerOperator op, const char *value, void(*func)(const LightSong &song, const char *value, void *user_data), void *user_data)
Finds stickers with the specified name below the specified directory.
sticker_song_get
Sticker * sticker_song_get(const LightSong &song)
Loads the sticker for the specified song.
Compiler.h
StickerOperator
StickerOperator
Definition: Match.hxx:23
sticker_song_delete_value
bool sticker_song_delete_value(const LightSong &song, const char *name)
Deletes a sticker value.
sticker_song_set_value
void sticker_song_set_value(const LightSong &song, const char *name, const char *value)
Sets a sticker value in the specified song.
gcc_pure
#define gcc_pure
Definition: Compiler.h:116
sticker_song_delete
bool sticker_song_delete(const char *uri)
Deletes a sticker from the database.
uri
const Storage const char * uri
Definition: DatabasePlaylist.hxx:31
LightSong
A reference to a song file.
Definition: LightSong.hxx:40
name
const Partition const char * name
Definition: Count.hxx:34