aboutsummaryrefslogtreecommitdiffstats
path: root/src/mapper.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright notices.Avuton Olrich2009-12-311-1/+1
|
* Merge branch 'v0.15.x'Max Kellermann2009-12-141-0/+2
|\ | | | | | | | | Conflicts: src/decoder/ffmpeg_plugin.c
| * mapper: apply filesystem_charset to playlistsMax Kellermann2009-12-081-0/+2
| | | | | | | | | | | | | | | | This fixes an inconsistency in the stored playlist subsystem: when obtaining the list of playlists (listplaylist, listplaylistinfo), the file names in the playlist directory are converted to UTF-8 (according to filesystem_charset), but when saving or loading playlists, the filesystem_charset setting was ignored.
* | mapper: pass music and playlist directory to mapper_init()Max Kellermann2009-07-151-1/+1
|/ | | | Added another glue function in main().
* all: Update copyright header.Avuton Olrich2009-03-131-6/+7
| | | | | | | | This updates the copyright header to all be the same, which is pretty much an update of where to mail request for a copy of the GPL and the years of the MPD project. This also puts all committers under 'The Music Player Project' umbrella. These entries should go individually in the AUTHORS file, for consistancy.
* mapper: added dot to PLAYLIST_FILE_SUFFIXMax Kellermann2009-01-251-1/+1
| | | | | Some code will be a little bit simpler if the dot is part of the string literal.
* mapper: make the music_directory optionalMax Kellermann2009-01-181-0/+8
| | | | Without a music_directory, MPD is an excellent streaming client.
* mapper: allocate the result of map_fs_to_utf8()Max Kellermann2009-01-041-6/+2
|
* mapper: allocate the result of map_directory_child_fs(), map_song_fs()Max Kellermann2009-01-021-5/+4
| | | | Don't use fixed stack buffers.
* mapper: allocate the result of map_uri_fs(), map_directory_fs()Max Kellermann2009-01-021-4/+4
| | | | Don't use fixed stack buffers.
* mapper: allocate playlist path from heapMax Kellermann2009-01-011-3/+4
| | | | Don't pass a static buffer to map_spl_utf8_to_fs().
* playlist: fix stored playlist modifications with absolute pathsMax Kellermann2008-12-241-0/+8
| | | | | | | | When save_absolute_paths_in_playlists was enabled in mpd.conf, MPD broke all playlists when manipulated using the "playlistdelete" command. The reason was that map_directory_child_fs() was used, which doesn't accept slashes in the file name. Use the new map_uri_fs() function instead.
* path: moved playlist_dir to mapper.cMax Kellermann2008-10-311-0/+15
| | | | | Added the function map_spl_utf8_to_fs() which replaces utf8_to_fs_playlist_path().
* added prefix to header macrosMax Kellermann2008-10-311-2/+2
| | | | | | | "LOG_H" is a macro which is also used by ffmpeg/log.h. This is ffmpeg's fault, because short macros should be reserved for applications, but since it's always a good idea to choose prefixed macro names, even for applications, we are going to do that in MPD.
* mapper: moved musicDir initialization from path.cMax Kellermann2008-10-151-0/+4
| | | | | Moved the musicDir variable and its initialization code from path.c to mapper.c.
* mapper: new song-to-filesystem mapper libraryMax Kellermann2008-10-141-0/+74
The mapper library maps directory and song objects to file system paths. With this central library, the code mixture in path.c should be cleaned up, and we will be able to add neat features like aliasing.