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
38MpdData * mpd_database_get_albums (MpdObj *mi,const char *artist);
39
40
49
50
60
61
70int mpd_database_update_dir (MpdObj *mi,const char *path);
71
72
81MpdData * mpd_database_find(MpdObj *mi, int table,const char *string, int exact);
82
92
102
113
121
122
130void mpd_database_search_add_constraint(MpdObj *mi, mpd_TagItems field, const char *value);
131
158
180
189
190
191
200
208
219
220
229
236
243
244
253int mpd_database_delete_playlist(MpdObj *mi,const char *path);
254
264int mpd_database_save_playlist (MpdObj *mi,const char *name);
265
275
284void mpd_database_playlist_list_add(MpdObj *mi, const char *path, const char *file);
285
295void mpd_database_playlist_list_delete(MpdObj *mi, const char *path, int pos);
296
304void mpd_database_playlist_clear(MpdObj *mi,const char *path);
305
314void mpd_database_playlist_rename(MpdObj *mi, const char *old_name, const char *new_name);
315
325int mpd_database_playlist_move(MpdObj *mi, const char *playlist, int old_pos, int new_pos);
328#endif
int mpd_database_playlist_move(MpdObj *mi, const char *playlist, int old_pos, int new_pos)
void mpd_database_search_free_stats(MpdDBStats *data)
void mpd_database_search_field_start(MpdObj *mi, mpd_TagItems field)
void mpd_database_search_add_constraint(MpdObj *mi, mpd_TagItems field, const char *value)
MpdData * mpd_database_get_albums(MpdObj *mi, const char *artist)
MpdData * mpd_database_get_complete(MpdObj *mi)
mpd_Song * mpd_database_get_fileinfo(MpdObj *mi, const char *path)
MpdData * mpd_database_get_artists(MpdObj *mi)
MpdData * mpd_database_get_directory(MpdObj *mi, const char *path)
void mpd_database_playlist_rename(MpdObj *mi, const char *old_name, const char *new_name)
MpdData * mpd_database_get_playlist_content(MpdObj *mi, const char *playlist)
MpdData * mpd_database_find(MpdObj *mi, int table, const char *string, int exact)
MpdData * mpd_database_playlist_list(MpdObj *mi)
void mpd_database_playlist_list_delete(MpdObj *mi, const char *path, int pos)
MpdData * mpd_database_search_commit(MpdObj *mi)
int mpd_database_delete_playlist(MpdObj *mi, const char *path)
MpdDBStats * mpd_database_search_stats_commit(MpdObj *mi)
void mpd_database_search_start(MpdObj *mi, int exact)
MpdData * mpd_database_get_directory_recursive(MpdObj *mi, const char *path)
void mpd_database_playlist_clear(MpdObj *mi, const char *path)
mpd_SearchStats MpdDBStats
A Structure containing numberOfSongs and playTime.
void mpd_database_search_stats_start(MpdObj *mi)
void mpd_database_playlist_list_add(MpdObj *mi, const char *path, const char *file)
int mpd_database_save_playlist(MpdObj *mi, const char *name)
int mpd_database_update_dir(MpdObj *mi, const char *path)
struct _MpdObj MpdObj
Definition libmpd.h:100
mpd_TagItems

Copyright 2006 Qball Cow