|
libmpd 11.8.17
|
Go to the source code of this file.
Typedefs | |
| typedef mpd_SearchStats | MpdDBStats |
| A Structure containing numberOfSongs and playTime. | |
| typedef mpd_SearchStats MpdDBStats |
A Structure containing numberOfSongs and playTime.
see mpd_SearchStats
Definition at line 207 of file libmpd-database.h.
| int mpd_database_delete_playlist | ( | MpdObj * | mi, |
| const char * | path ) |
| mi | A MpdObj |
| path | path of the playlist |
Deletes a playlist.
References mpd_database_delete_playlist().
Referenced by mpd_database_delete_playlist().
| 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 |
References mpd_database_find().
Referenced by mpd_database_find().
| 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
References mpd_database_get_albums().
Referenced by mpd_database_get_albums().
| mi | a MpdObj |
returns a list of all available artists.
References mpd_database_get_artists().
Referenced by mpd_database_get_artists().
| mi | a MpdObj |
Gets the complete database, only returns songs
References mpd_database_get_complete().
Referenced by mpd_database_get_complete().
| mi | a MpdObj |
| path | a NULL terminated path string |
Gets the contents of a directory, it can return songs, directories and playlists
References mpd_database_get_directory().
Referenced by mpd_database_get_directory().
| mi | a MpdObj |
| path | a string containing the path |
Recursively list all the songs directory path
References mpd_database_get_directory_recursive().
Referenced by mpd_database_get_directory_recursive().
| 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.
References mpd_database_get_fileinfo().
Referenced by mpd_database_get_fileinfo().
| mi | a MpdObj |
| playlist | the playlist you need the content of. |
Needs mpd 0.12.0 or higher.
References mpd_database_get_playlist_content().
Referenced by mpd_database_get_playlist_content().
| void mpd_database_playlist_clear | ( | MpdObj * | mi, |
| const char * | path ) |
| mi | a MpdObj |
| path | a string containing the path of the playlist |
Clears the content of a stored playlist, also used to create an empty playlist Needs mpd 0.13.0
References mpd_database_playlist_clear().
Referenced by mpd_database_playlist_clear().
References mpd_database_playlist_list().
Referenced by mpd_database_playlist_list().
| void mpd_database_playlist_list_add | ( | MpdObj * | mi, |
| const char * | path, | ||
| const char * | file ) |
| mi | a MpdObj |
| path | a string contains the path of the playlist |
| file | a string contains the path of the song to add |
Add a path to a stored playlist. Needs 0.13.0
References mpd_database_playlist_list_add().
Referenced by mpd_database_playlist_list_add().
| void mpd_database_playlist_list_delete | ( | MpdObj * | mi, |
| const char * | path, | ||
| int | pos ) |
| mi | a MpdObj |
| path | a string containing the path of the playlist |
| pos | an int representing the position of a song |
Deletes the song at position pos from a playlist. Needs mpd 0.13.0
References mpd_database_playlist_list_delete().
Referenced by mpd_database_playlist_list_delete().
| int mpd_database_playlist_move | ( | MpdObj * | mi, |
| const char * | playlist, | ||
| int | old_pos, | ||
| int | new_pos ) |
| mi | a MpdObj |
| playlist | a string containing the path of the playlist |
| old_pos | an integer representing old position |
| new_pos | an integer representing the position to move old_pos to. |
Moves songs in a stored playlist Needs mpd 0.13.0
References mpd_database_playlist_move().
Referenced by mpd_database_playlist_move().
| void mpd_database_playlist_rename | ( | MpdObj * | mi, |
| const char * | old_name, | ||
| const char * | new_name ) |
| mi | a MpdObj |
| old | a string, old playlist name |
| new | a string, new playlist name |
Renames a stored playlist Needs mpd 0.13.0
References mpd_database_playlist_rename().
Referenced by mpd_database_playlist_rename().
| int mpd_database_save_playlist | ( | MpdObj * | mi, |
| const char * | name ) |
| mi | a MpdObj |
| name | The name of the playlist |
Saves the current playlist to a file.
References mpd_database_save_playlist().
Referenced by mpd_database_save_playlist().
| void mpd_database_search_add_constraint | ( | MpdObj * | mi, |
| mpd_TagItems | field, | ||
| const char * | value ) |
| mi | A MpdObj |
| field | A mpd_TagItems |
| value | a string that field needs to match |
Adds a constraint to the search
References mpd_database_search_add_constraint().
Referenced by mpd_database_search_add_constraint().
| mi | A MpdObj |
Commits the search and gathers the result in a MpdData list.
References mpd_database_search_commit().
Referenced by mpd_database_search_commit().
| void mpd_database_search_field_start | ( | MpdObj * | mi, |
| mpd_TagItems | field ) |
| mi | a MpdObj |
| field | a mpd_TagItems |
Starts a field search, eg. if you want a list of all albums, you do;
You can add constraints using mpd_database_search_add_constraint, for example if you want all albums by eric clapton:
References mpd_database_search_field_start().
Referenced by mpd_database_search_field_start().
| void mpd_database_search_free_stats | ( | MpdDBStats * | data | ) |
| data | a MpdDBStats |
frees the MpdDBStats structure.
References mpd_database_search_free_stats().
Referenced by mpd_database_search_free_stats().
| void mpd_database_search_start | ( | MpdObj * | mi, |
| int | exact ) |
| mi | A MpdObj |
| exact | a boolean indicating if the search is fuzzy or exact |
Starts a search, you can add "constraints" by calling mpd_database_search_add_constraint For Example if you want all songs by Eric Clapton you could do:
If you only want the songs from the album unplugged:
This function requires mpd 0.12.0 or higher
References mpd_database_search_start().
Referenced by mpd_database_search_start().
| MpdDBStats * mpd_database_search_stats_commit | ( | MpdObj * | mi | ) |
| mi | A MpdObj |
Gets statistics results of a search.
References mpd_database_search_stats_commit().
Referenced by mpd_database_search_stats_commit().
| void mpd_database_search_stats_start | ( | MpdObj * | mi | ) |
| mi | A MpdObj |
Starts a search, you can add constraints by calling mpd_database_search_add_constraint. To get the result call mpd_database_search_stats_commit
This function requires mpd 0.13.0 or higher
References mpd_database_search_stats_start().
Referenced by mpd_database_search_stats_start().
| 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.
References mpd_database_update_dir().
Referenced by mpd_database_update_dir().