libmpd  11.8.17
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 
49 
50 
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 
180 
189 
190 
191 
200 
208 
219 
220 
229 
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);
328 #endif
void mpd_database_playlist_list_add(MpdObj *mi, const char *path, const char *file)
MpdDBStats * mpd_database_search_stats_commit(MpdObj *mi)
mpd_SearchStats MpdDBStats
A Structure containing numberOfSongs and playTime.
void mpd_database_search_stats_start(MpdObj *mi)
int mpd_database_save_playlist(MpdObj *mi, const char *name)
void mpd_database_playlist_list_delete(MpdObj *mi, const char *path, int pos)
void mpd_database_playlist_rename(MpdObj *mi, const char *old_name, const char *new_name)
int mpd_database_update_dir(MpdObj *mi, const char *path)
MpdData * mpd_database_get_directory(MpdObj *mi, const char *path)
MpdData * mpd_database_get_artists(MpdObj *mi)
struct _MpdObj MpdObj
Definition: libmpd.h:100
mpd_TagItems
Definition: libmpdclient.h:78
MpdData * mpd_database_find(MpdObj *mi, int table, const char *string, int exact)
MpdData * mpd_database_search_commit(MpdObj *mi)
MpdData * mpd_database_get_directory_recursive(MpdObj *mi, const char *path)
void mpd_database_search_field_start(MpdObj *mi, mpd_TagItems field)
int mpd_database_delete_playlist(MpdObj *mi, const char *path)
void mpd_database_search_start(MpdObj *mi, int exact)
MpdData * mpd_database_get_playlist_content(MpdObj *mi, const char *playlist)
void mpd_database_search_free_stats(MpdDBStats *data)
mpd_Song * mpd_database_get_fileinfo(MpdObj *mi, const char *path)
MpdData * mpd_database_get_complete(MpdObj *mi)
int mpd_database_playlist_move(MpdObj *mi, const char *playlist, int old_pos, int new_pos)
void mpd_database_playlist_clear(MpdObj *mi, const char *path)
MpdData * mpd_database_playlist_list(MpdObj *mi)
void mpd_database_search_add_constraint(MpdObj *mi, mpd_TagItems field, const char *value)
MpdData * mpd_database_get_albums(MpdObj *mi, const char *artist)

Copyright 2006 Qball Cow