aboutsummaryrefslogtreecommitdiffstats
path: root/src/StateFile.hxx (unfollow)
Commit message (Collapse)AuthorFilesLines
2013-08-07ConfigPath: return a Path objectMax Kellermann1-2/+1
Migrate all callers to use Path directly, instead of doing the conversion in each caller.
2013-04-08event/TimeoutMonitor: eliminate support for periodic eventsMax Kellermann1-1/+1
No caller needs this. Fixes use-after-free after returning from Client::OnTimeout().
2013-04-08StateFile: schedule timer only after a changeMax Kellermann1-2/+5
Save the state file 2 minutes after the last change. This reduces the disruptions by an idle MPD, and MPD can be paged out permanently until it is used.
2013-04-08StateFile: move code to RememberVersions(), IsModified()Max Kellermann1-0/+12
2013-04-08StateFile: make AutoWrite() privateMax Kellermann1-1/+3
2013-02-02StateFile: use file system API, log in UTF-8Denis Krjuchkov1-1/+3
2013-01-22Path: move to fs subdirectoryDenis Krjuchkov1-1/+1
2013-01-18Path: new class "Path" wraps filesystem path stringsMax Kellermann1-2/+3
2013-01-14event/TimeoutMonitor: wrapper for g_timeout_source_new()Max Kellermann1-9/+4
2013-01-14StateFile: convert to a classMax Kellermann1-5/+30
2013-01-05Partition: new class, container for Playlist and PlayerControlMax Kellermann1-3/+3
This is the beginning of multi-player support. There will be support for multiple Partition objects in one MPD process.
2013-01-02db_save, state_file: convert to C++Max Kellermann1-3/+3
2011-01-29copyright year 2011Max Kellermann1-1/+1
2011-01-10player_control: removed the global variable "pc"Max Kellermann1-2/+4
Allocate a player_control object where needed, and pass it around. Each "client" object is associated with a "player_control" instance. This prepares multi-player support.
2009-12-31Update copyright notices.Avuton Olrich1-1/+1
2009-03-13all: Update copyright header.Avuton Olrich1-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.
2009-01-18state_file: added state_file_init() and state_file_finish()Max Kellermann1-1/+6
The constructor/destructor interface should hide the functions read_state_file() and write_state_file().
2009-01-18state_file: include cleanupMax Kellermann1-2/+0
2009-01-03state_file: errors are non-fatal in read_state_file()Max Kellermann1-1/+0
If the state file cannot be read, for whatever reason, don't abort MPD. The state file isn't _that_ important.
2008-12-02replaced mpd_noreturn by G_GNUC_NORETURNThomas Jansen1-2/+2
We want to remove gcc.h eventually. This takes care of all the G_GNUC_NORETURN macros.
2008-10-31added prefix to header macrosMax Kellermann1-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.
2008-01-03Cleanup #includes of standard system headers and put them in one placeEric Wong1-2/+0
This will make refactoring features easier, especially now that pthreads support and larger refactorings are on the horizon. Hopefully, this will make porting to other platforms (even non-UNIX-like ones for masochists) easier, too. os_compat.h will house all the #includes for system headers considered to be the "core" of MPD. Headers for optional features will be left to individual source files. git-svn-id: https://svn.musicpd.org/mpd/trunk@7130 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-04-05The massive copyright updateAvuton Olrich1-1/+1
git-svn-id: https://svn.musicpd.org/mpd/trunk@5834 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2006-07-30Standardize state_file handling routines.Eric Wong1-6/+8
This way it's easier to manage and extend. git-svn-id: https://svn.musicpd.org/mpd/trunk@4494 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2006-07-20Add mpd-indent.shAvuton Olrich1-2/+2
Indent the entire tree, hopefully we can keep it indented. git-svn-id: https://svn.musicpd.org/mpd/trunk@4410 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2006-07-14Change shank's email addressJ. Alexander Treuman1-1/+1
git-svn-id: https://svn.musicpd.org/mpd/trunk@4333 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2006-07-14[CLEANUP] Remove closeCharSetConversion from theAvuton Olrich1-2/+0
header, there's no need to export it. Static it. git-svn-id: https://svn.musicpd.org/mpd/trunk@4330 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2006-07-13Huge header update, update the copyright and addAvuton Olrich1-1/+1
the GPL header where necessary git-svn-id: https://svn.musicpd.org/mpd/trunk@4317 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-11-03remove vim &*(@Warren Dukes1-1/+0
git-svn-id: https://svn.musicpd.org/mpd/trunk@2500 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-06-17actually, scratch the last changeWarren Dukes1-1/+1
git-svn-id: https://svn.musicpd.org/mpd/trunk@1524 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-06-17check in configure script if iconv() needs CONSTWarren Dukes1-1/+1
git-svn-id: https://svn.musicpd.org/mpd/trunk@1523 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-14add vim shiznit to end of all source filesWarren Dukes1-0/+1
git-svn-id: https://svn.musicpd.org/mpd/trunk@750 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-18bunch of autotool cleanupsWarren Dukes1-0/+2
git-svn-id: https://svn.musicpd.org/mpd/trunk@271 09075e82-0dd4-0310-85a5-a0d7c8717e4f