libmpd
11.8.90
|
Modules | |
Database Advanced Search | |
Database Search Statistics | |
Database Playlist | |
Functions | |
MpdData * | mpd_database_get_albums (MpdObj *mi, const char *artist) |
MpdData * | mpd_database_get_artists (MpdObj *mi) |
MpdData * | mpd_database_get_complete (MpdObj *mi) |
int | mpd_database_update_dir (MpdObj *mi, const char *path) |
MpdData * | mpd_database_find (MpdObj *mi, int table, const char *string, int exact) |
MpdData * | mpd_database_get_directory (MpdObj *mi, const char *path) |
MpdData * | mpd_database_get_directory_recursive (MpdObj *mi, const char *path) |
mpd_Song * | mpd_database_get_fileinfo (MpdObj *mi, const char *path) |
MpdData* mpd_database_find | ( | MpdObj * | mi, |
int | table, | ||
const char * | string, | ||
int | exact | ||
) |
mi | a #MpdObj |
table | table |
string | string to search for |
exact | if #TRUE only return exact matches WARNING: This function is deprecated, use mpd_database_search_start |
MpdData* mpd_database_get_albums | ( | MpdObj * | mi, |
const char * | artist | ||
) |
mi | A #MpdObj |
artist | an artist name |
Grabs a list of albums of a certain artist from mpd. if artist is NULL it grabs all albums
MpdData* mpd_database_get_artists | ( | MpdObj * | mi | ) |
mi | a #MpdObj |
returns a list of all available artists.
MpdData* mpd_database_get_complete | ( | MpdObj * | mi | ) |
mi | a #MpdObj |
Gets the complete database, only returns songs
MpdData* mpd_database_get_directory | ( | MpdObj * | mi, |
const char * | path | ||
) |
mi | a #MpdObj |
path | a NULL terminated path string |
Gets the contents of a directory, it can return songs, directories and playlists
MpdData* mpd_database_get_directory_recursive | ( | MpdObj * | mi, |
const char * | path | ||
) |
mi | a #MpdObj |
path | a string containing the path |
Recursively list all the songs directory path
mpd_Song* mpd_database_get_fileinfo | ( | MpdObj * | mi, |
const char * | path | ||
) |
mi | A #MpdObj |
path | an Path to a file |
Grabs the song info for a single file. Make sure you pass a url to a song and not a directory, that might result in strange behaviour.
int mpd_database_update_dir | ( | MpdObj * | mi, |
const char * | path | ||
) |
mi | A #MpdObj |
path | The path mpd should update. |
Force mpd to update (parts of) the database.