aboutsummaryrefslogtreecommitdiffstats
path: root/src/SongSave.cxx (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-08-07fs/output, fs/TextFile: move to fs/io/Max Kellermann1-2/+2
2014-08-07util/StringUtil: rename strchug_fast() to StripLeft()Max Kellermann1-1/+1
2014-07-30*Save, *State: use the OutputStream API instead of FILE*Max Kellermann1-15/+16
2014-02-26db/simple: create dedicated directoryMax Kellermann1-1/+1
2014-01-24Database*: move to db/Max Kellermann1-1/+1
2014-01-19Song: embed the Tag object statically into class SongMax Kellermann1-2/+1
Reduces overhead because we need to manage only one memory allocation. According to valgrind/massif, we save 7%.
2014-01-13copyright year 2014Max Kellermann1-1/+1
2014-01-09DetachedSong: fork of struct SongMax Kellermann1-18/+38
From now on, struct Song will be used by the database only, and DetachedSong will be used by everybody else. DetachedSong is easier to use, but Song has lower overhead.
2014-01-08SongSave: make variables more localMax Kellermann1-5/+4
2014-01-08tag/TagBuilder: rename Commit() to CommitNew()Max Kellermann1-1/+1
2013-12-08TextFile: move to fs subsystemDenis Krjuchkov1-1/+1
2013-11-28include cleanup using iwyuMax Kellermann1-1/+0
2013-11-11filter/route, ...: add missing stdlib.h includesMax Kellermann1-0/+1
2013-10-20TagType: rename enum tag_type to TagTypeMax Kellermann1-1/+1
2013-10-19*: use references instead of pointersMax Kellermann1-9/+9
2013-10-19*: use nullptr instead of NULLMax Kellermann1-6/+6
2013-10-18util/StringUtil: rename strchug_fast_c() to strchug_fast()Max Kellermann1-1/+1
Overload the name.
2013-10-02Log: new logging library APIMax Kellermann1-5/+0
Prepare to migrate away from GLib. Currently, we're still using GLib as a backend.
2013-10-02Listen, ...: add missing includesMax Kellermann1-1/+1
2013-09-05SongSave: use class TagBuilderMax Kellermann1-24/+8
2013-09-05Tag, ...: move to libtag.aMax Kellermann1-1/+1
2013-09-04util/Error: new error passing libraryMax Kellermann1-10/+8
Replaces GLib's GError.
2013-07-30tag: convert to C++Max Kellermann1-13/+13
2013-07-28song: convert header to C++Max Kellermann1-8/+8
2013-04-09string_util: convert to C++Max Kellermann1-4/+1
2013-01-07decoder_api.h, ...: add "extern C"Max Kellermann1-1/+1
2013-01-03TextFile: convert to a classMax Kellermann1-3/+3
2013-01-03text_file: convert to C++Max Kellermann1-1/+1
2013-01-03Directory: rename struct directory to DirectoryMax Kellermann1-1/+1
2013-01-02Directory: make the header C++ onlyMax Kellermann1-1/+1
2013-01-02db_save, state_file: convert to C++Max Kellermann1-3/+6
2012-02-12tag: add attribute "has_playlist"Max Kellermann1-0/+7
2012-01-24directory: replace songvec with doubly linked listMax Kellermann1-13/+0
2011-01-29copyright year 2011Max Kellermann1-1/+1
2010-12-23string_util: add function strchug_fast()Max Kellermann1-1/+2
Replace g_strchug() calls with a cheaper implementation.
2010-07-25queue_save: save tags and range of non-database songsMax Kellermann1-6/+12
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.
2010-07-25song_save: save start_ms and end_msMax Kellermann1-0/+11
While this is not useful for the database, it may become useful for reusing this code for the state file.
2010-07-25song_save: song_load() returns NULL instead of falseMax Kellermann1-2/+2
2010-07-21song_save: pass const songvec to songvec_save()Max Kellermann1-1/+1
2009-12-31Update copyright notices.Avuton Olrich1-1/+1
2009-11-12include config.h in all sourcesMax Kellermann1-0/+1
After we've been hit by Large File Support problems several times in the past week (which only occur on 32 bit platforms, which I don't have), this is yet another attempt to fix the issue.
2009-11-04tag: added function tag_name_parse()Max Kellermann1-14/+1
Convert a string into a tag_type enum.
2009-11-04song_save: explicitly parse the colonMax Kellermann1-18/+27
Clear the colon. This simplifies all attribute parsers, because they can now use strcmp() instead of strncmp().
2009-11-01song_save: free song object on errorMax Kellermann1-0/+4
Fix a minor memory leak.
2009-11-01song_save: load one song at a timeMax Kellermann1-62/+11
Changed songvec_load() to song_load(). Added start and end markers for each song. Removed the "key" line, it's redundant.
2009-11-01database: use strcmp() instead of g_str_has_prefix()Max Kellermann1-2/+1
2009-11-01text_file: allocate line buffers dynamicallyMax Kellermann1-16/+15
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.
2009-11-01song_save: increased maximum line length to 32 kBMax Kellermann1-3/+7
The line buffer had a fixed size of 5 kB, and was allocated on the stack. This was too small for some users. As a hotfix, we're increasing the buffer size to 32 kB now, allocated on the heap. In MPD 0.16, we'll switch to dynamic allocation.
2009-10-13song: renamed attribute "url" to "uri"Max Kellermann1-7/+6
2009-07-05song_save: use GError for error handlingMax Kellermann1-5/+18