aboutsummaryrefslogtreecommitdiffstats
path: root/src/song_save.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* copyright year 2011Max Kellermann2011-01-291-1/+1
|
* queue_save: save tags and range of non-database songsMax Kellermann2010-07-251-0/+4
| | | | | Use the functions song_save() and song_load() to use the same format as in the database file for those songs which need the tags.
* song_save: pass const songvec to songvec_save()Max Kellermann2010-07-211-1/+2
|
* song_save: include cleanupMax Kellermann2010-07-211-1/+0
|
* Update copyright notices.Avuton Olrich2009-12-311-1/+1
|
* song_save: load one song at a timeMax Kellermann2009-11-011-5/+7
| | | | | Changed songvec_load() to song_load(). Added start and end markers for each song. Removed the "key" line, it's redundant.
* text_file: allocate line buffers dynamicallyMax Kellermann2009-11-011-1/+1
| | | | | | | Use a single GString buffer object in all functions loading the database. Enlarge it automatically for long lines. This eliminates the maximum line length for tag values. There is still an upper limit of 512 kB to prevent denial of service, but that's reasonable I guess.
* song_save: use GError for error handlingMax Kellermann2009-07-051-2/+14
|
* song_save: no CamelCaseMax Kellermann2009-07-051-2/+2
| | | | Renamed functions.
* 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.
* 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.
* song: converted typedef Song to struct songMax Kellermann2008-10-081-1/+2
| | | | Again, a data type which can be forward-declared.
* directory: converted typedef Directory to struct directoryMax Kellermann2008-10-081-1/+1
| | | | | The struct can be forward-declared by other headers, which relaxes the header dependencies.
* Replace SongList with struct songvecEric Wong2008-09-231-2/+4
| | | | | | | Our linked-list implementation is wasteful and the SongList isn't modified enough to benefit from being a linked list. So use a more compact array of song pointers which saves ~200K on a library with ~9K songs (on x86-32).
* song: moved code to song_print.c, song_save.cMax Kellermann2008-09-071-0/+29
Move everything which dumps song information (via tag_print.c) to a separate source file. song_print.c gets code which writes song data to the client; song_save.c is responsible for serializing songs from the tag cache.