Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2015-02-28 | fs/CheckFile: convert path to UTF-8 for error message | Max Kellermann | 1 | -6/+11 | |
2015-02-28 | fs/FileInfo: use GetFileAttributesEx() on WIN32 | Max Kellermann | 1 | -1/+49 | |
2015-02-28 | fs/FileSystem: remove unused WIN32 port of StatFile() | Max Kellermann | 1 | -5/+4 | |
2015-02-28 | fs/FileInfo: new library providing GetFileInfo() | Max Kellermann | 2 | -8/+114 | |
Replaces StatFile(), with a portable data object. | |||||
2015-02-28 | fs/Path: make IsAbsolute() const | Max Kellermann | 2 | -2/+2 | |
2015-02-27 | fs/FileSystem: use GetFileAttributes() on WIN32 if possible | Max Kellermann | 1 | -2/+20 | |
2015-02-27 | fs/FileSystem: merge CheckAccess() into PathExists() | Max Kellermann | 1 | -16/+6 | |
PathExists() should better do what CheckAccess() does, and CheckAccess() doesn't do what its name implies. | |||||
2015-02-26 | fs/DirectoryReader: use FindFirstFile(), FindNextFile() on WIN32 | Max Kellermann | 1 | -0/+85 | |
2015-02-25 | fs/Traits: add constant CURRENT_DIRECTORY | Max Kellermann | 3 | -2/+7 | |
2015-02-25 | fs/AllocatedPath: add nullptr_t constructor | Max Kellermann | 1 | -1/+3 | |
2015-02-25 | fs/{Allocated,}Path,Charset: use PathTraitsFS typedefs | Max Kellermann | 6 | -21/+19 | |
2015-02-25 | fs/FileSystem: remove unused FOpenModes | Max Kellermann | 1 | -20/+0 | |
2015-02-25 | fs/io/File{Reader,OutputStream}: convert path to UTF-8 for error message | Max Kellermann | 2 | -7/+18 | |
2015-02-10 | fs/io/FileOutputStream: use CREATE_ALWAYS instead of TRUNCATE_EXISTING | Max Kellermann | 1 | -1/+1 | |
Fixes yet another breakage of creating the database+state file on Windows. | |||||
2015-02-09 | fs/Charset: convert #ifdef to regular "if" | Max Kellermann | 1 | -3/+5 | |
2015-02-08 | fs/Charset: change FixSeparators() API to use std::string&& | Max Kellermann | 1 | -11/+6 | |
2015-02-06 | fs/io/FileOutputStream: don't auto-delete file on WIN32 | Max Kellermann | 1 | -0/+2 | |
The file handle is never reset to INVALID_HANDLE_VALUE, and thus the destructor will assume the operation shall be cancelled and will delete the temporary file. This was a major breakage for saving the database file and the state file. | |||||
2015-01-21 | fs/io/BufferedReader: count line numbers | Max Kellermann | 2 | -2/+12 | |
Replaces the dirty code in config/ConfigFile.cxx. | |||||
2015-01-21 | config/Option: convert to strictly-typed enum | Max Kellermann | 1 | -1/+1 | |
2015-01-14 | fs/io/FileOutputStream: add static method Create() | Max Kellermann | 2 | -0/+13 | |
2015-01-13 | fs/AllocatedPath: add operator== | Max Kellermann | 1 | -0/+10 | |
2015-01-06 | fs/io/FileOutputStream: use O_TMPFILE if available | Max Kellermann | 2 | -7/+67 | |
The Linux feature allows writing new files to an invisible file, and then replace the old file. This preserves the old file if we get interrupted by some event. | |||||
2015-01-05 | fs/io/File{Reader,OutputStream}: use OpenFile() | Max Kellermann | 2 | -8/+7 | |
2015-01-01 | Copyright year 2015 | Max Kellermann | 42 | -42/+42 | |
2014-12-26 | fs/Traits, ...: work around -Wtautological-pointer-compare | Max Kellermann | 1 | -0/+16 | |
New in clang 3.6. | |||||
2014-12-26 | util/{ASCII,UriUtil}, ...: work around -Wtautological-pointer-compare | Max Kellermann | 2 | -0/+12 | |
New in clang 3.6. | |||||
2014-12-02 | fs/Path: add methods GetBase() and GetDirectoryName() | Max Kellermann | 2 | -0/+46 | |
2014-12-01 | lib/icu/Converter: add ICU-based backend | Max Kellermann | 1 | -1/+1 | |
2014-11-30 | fs/Config: add HAVE_GLIB check | Max Kellermann | 1 | -1/+1 | |
2014-11-30 | fs/Config: swap #if/#else | Max Kellermann | 1 | -7/+7 | |
2014-11-30 | fs/Charset: move code to wrapper class IcuConverter | Max Kellermann | 1 | -64/+13 | |
Prepare for a ICU-based backend without GLib. | |||||
2014-11-30 | fs/Charset: return std::string from PathFromUTF8() | Max Kellermann | 4 | -31/+9 | |
Don't expose pointer that requires the caller to invoke g_free(), because that's GLib-only. | |||||
2014-11-30 | fs/Charset: use macro HAVE_FS_CHARSET internally | Max Kellermann | 1 | -4/+4 | |
2014-11-29 | fs/Charset: add DeinitFSCharset() | Max Kellermann | 4 | -0/+19 | |
2014-11-29 | fs/Charset: add macro HAVE_FS_CHARSET | Max Kellermann | 4 | -3/+7 | |
2014-11-29 | fs/Charset: return Error on SetFSCharset() failure | Max Kellermann | 4 | -16/+33 | |
Don't abort the process, let the caller decide instead. | |||||
2014-11-29 | fs/Config: remove bogus WIN32 check | Max Kellermann | 1 | -1/+1 | |
2014-11-28 | Compiler.h: exclude clang from GCC_CHECK_VERSION() | Max Kellermann | 1 | -1/+1 | |
2014-11-21 | configure.ac: add macro MPD_ENABLE_AUTO_PKG | Max Kellermann | 2 | -4/+4 | |
Simplify the definition of many build options. | |||||
2014-11-11 | Construct a Null AllocatedPath if the filename conversion into UTF8 failed | Florent Le Coz | 1 | -1/+5 | |
2014-10-25 | fs/Charset: work around clang's -Wunused-const-variable | Max Kellermann | 1 | -1/+2 | |
MPD_PATH_MAX_UTF8 is only used by GLib-specific code currently. | |||||
2014-10-10 | fs/Traits: use value_type | Max Kellermann | 1 | -4/+4 | |
2014-09-28 | fs/AllocatedPath: add method Steal() | Max Kellermann | 1 | -0/+8 | |
2014-09-28 | fs/AllocatedPath: API documentation grammar fixes | Max Kellermann | 1 | -5/+5 | |
2014-08-30 | *: add missing Compiler.h includes | Max Kellermann | 7 | -0/+7 | |
Necessary for "final" on gcc 4.6. | |||||
2014-08-11 | fs/io/TextFile: add method Check() | Max Kellermann | 2 | -0/+16 | |
2014-08-11 | fs/io/Reader: add "nonnull" attribute | Max Kellermann | 1 | -0/+1 | |
2014-08-11 | fs/io/TextFile: use AutoGunzipReader | Max Kellermann | 2 | -1/+23 | |
Several MPD subsystems can now read gzipped files; for example, the database file can be gzipped. | |||||
2014-08-11 | fs/io/AutoGunzipReader: new class | Max Kellermann | 2 | -0/+121 | |
2014-08-11 | fs/io/PeekReader: new utility class | Max Kellermann | 2 | -0/+112 | |