libmpd
0.20.0
Main Page
Modules
Data Structures
Files
Examples
File List
Globals
libmpd-database.h
Go to the documentation of this file.
1
/* libmpd (high level libmpdclient library)
2
* Copyright (C) 2004-2009 Qball Cow <qball@sarine.nl>
3
* Project homepage: http://gmpcwiki.sarine.nl/
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_LIB_DATABASE__
21
#define __MPD_LIB_DATABASE__
22
26
27
28
38
MpdData
*
mpd_database_get_albums
(
MpdObj
*mi,
const
char
*artist);
39
40
48
MpdData
*
mpd_database_get_artists
(
MpdObj
*mi);
49
50
59
MpdData
*
mpd_database_get_complete
(
MpdObj
*mi);
60
61
70
int
mpd_database_update_dir
(
MpdObj
*mi,
const
char
*path);
71
72
81
MpdData
*
mpd_database_find
(
MpdObj
*mi,
int
table,
const
char
*
string
,
int
exact);
82
91
MpdData
*
mpd_database_get_directory
(
MpdObj
*mi,
const
char
*path);
92
101
MpdData
*
mpd_database_get_directory_recursive
(
MpdObj
*mi,
const
char
*path);
102
112
mpd_Song
*
mpd_database_get_fileinfo
(
MpdObj
*mi,
const
char
*path);
113
121
122
130
void
mpd_database_search_add_constraint
(
MpdObj
*mi,
mpd_TagItems
field,
const
char
*value);
131
157
void
mpd_database_search_start
(
MpdObj
*mi,
int
exact);
158
179
void
mpd_database_search_field_start
(
MpdObj
*mi,
mpd_TagItems
field);
180
188
MpdData
*
mpd_database_search_commit
(
MpdObj
*mi);
189
190
191
200
207
typedef
mpd_SearchStats
MpdDBStats
;
208
218
void
mpd_database_search_stats_start
(
MpdObj
*mi);
219
220
228
MpdDBStats
*
mpd_database_search_stats_commit
(
MpdObj
*mi);
229
235
void
mpd_database_search_free_stats
(
MpdDBStats
*data);
236
243
244
253
int
mpd_database_delete_playlist
(
MpdObj
*mi,
const
char
*path);
254
264
int
mpd_database_save_playlist
(
MpdObj
*mi,
const
char
*name);
265
274
MpdData
*
mpd_database_get_playlist_content
(
MpdObj
*mi,
const
char
*playlist);
275
284
void
mpd_database_playlist_list_add
(
MpdObj
*mi,
const
char
*path,
const
char
*file);
285
295
void
mpd_database_playlist_list_delete
(
MpdObj
*mi,
const
char
*path,
int
pos);
296
304
void
mpd_database_playlist_clear
(
MpdObj
*mi,
const
char
*path);
305
314
void
mpd_database_playlist_rename
(
MpdObj
*mi,
const
char
*old_name,
const
char
*new_name);
315
325
int
mpd_database_playlist_move
(
MpdObj
*mi,
const
char
*playlist,
int
old_pos,
int
new_pos);
326
MpdData
*
mpd_database_playlist_list
(
MpdObj
*mi);
328
#endif
Copyright 2006
Qball Cow