aboutsummaryrefslogtreecommitdiffstats
path: root/src/fs (unfollow)
Commit message (Collapse)AuthorFilesLines
2013-10-28*: use nullptr instead of NULLMax Kellermann2-7/+7
2013-10-21GetBaseUTF8Max Kellermann2-0/+62
2013-10-21fs/AllocatedPath: don't include glib.hMax Kellermann1-4/+0
2013-10-17fs/Path: rename to AllocatedPathMax Kellermann7-174/+392
The new class Path only holds a string pointer without being responsible for allocation/deallocation. The FileSystem.hxx library accepts Path arguments instead of AllocatedPath, to avoid forcing callers to allocate another string object.
2013-10-17fs/Path: move definitions to struct PathTraitsMax Kellermann4-90/+129
2013-10-17fs/Path: include clenaupMax Kellermann1-1/+1
2013-10-17fs/Charset: GetFSCharset() returns "utf-8" by defaultMax Kellermann2-3/+3
If fs_charset is empty, i.e. we're using the default "utf-8", GetFSCharset() should return exactly that instead of an empty std::string.
2013-10-17fs/Charset: default filesystem charset is UTF-8Max Kellermann2-6/+7
Implement a fast path for UTF-8 which leaves fs_charset empty, and don't assign a value to fs_charset if there's no configuration.
2013-10-17fs/Charset: don't allow nullptr argumentsMax Kellermann3-7/+8
2013-10-17fs/Path: move configuration code to Config.cxxMax Kellermann6-132/+271
2013-10-17fs/Path: move path_domain to Domain.hxxMax Kellermann4-5/+50
2013-10-17fs/Path: make fs_charset staticMax Kellermann1-1/+1
2013-10-17fs/Path: include cleanupMax Kellermann1-1/+0
2013-10-17fs/Limits: convert macro to "constexpr"Max Kellermann3-12/+11
2013-10-17fs/Path: move MPD_PATH_MAX to Limits.hxxMax Kellermann4-14/+42
2013-10-15gcc.h: rename to Compiler.hMax Kellermann2-2/+2
2013-10-15*: use WIN32 instead of G_OS_WIN32Max Kellermann1-3/+3
2013-10-14fs/Path: add method IsAbsolute()Max Kellermann1-0/+31
2013-10-14fs/Path: add separator constants/functionsMax Kellermann2-2/+48
2013-10-14fs/Path: add method RelativeFS()Max Kellermann2-0/+31
Move code from map_fs_to_utf8().
2013-10-14fs/Path: add method data()Max Kellermann1-0/+9
2013-10-02Log: new logging library APIMax Kellermann1-5/+5
Prepare to migrate away from GLib. Currently, we're still using GLib as a backend.
2013-10-02filesystem/Path: use std::stringMax Kellermann2-78/+43
2013-09-12Path: add FromUTF8() overload that returns an ErrorMax Kellermann2-0/+18
2013-09-12ConfigPath: move path_domain to system/Path.cxxMax Kellermann2-0/+5
2013-09-05mpd_error.h: remove obsolete headerMax Kellermann1-2/+2
Migrate the remaining callers to FatalError().
2013-09-05conf.h: remove obsolete headerMax Kellermann1-1/+1
Use only ConfigData.hxx in plugin sources to reduce header dependencies.
2013-08-07os/FileSystem: disable mkfifo() wrapper on WIN32Max Kellermann1-0/+4
2013-08-07ConfigPath: return a Path objectMax Kellermann1-0/+6
Migrate all callers to use Path directly, instead of doing the conversion in each caller.
2013-08-07Makefile.am: move sources to libsystem.aMax Kellermann1-1/+1
2013-05-05DirectoryReader: rename Failed() to HasFailed() for consistency with TextFileDenis Krjuchkov1-4/+4
2013-02-02Path.hxx: add GetDirectoryName() methodDenis Krjuchkov1-0/+9
2013-02-02FileSystem.hxx: add FOpen modes for appending filesDenis Krjuchkov1-0/+10
2013-01-28Path::FromUTF8() returns nulled instance on error, add error handling where ↵Denis Krjuchkov2-7/+1
required
2013-01-28Path: convert remaining funcs to methods, keep fs_charset as std::stringDenis Krjuchkov2-22/+20
2013-01-28Path: merge utf8_to_fs_charset() into Path::FromUTF8()Denis Krjuchkov2-13/+4
2013-01-28Path: convert fs_charset_to_utf8() to static method Path::ToUTF8()Denis Krjuchkov2-22/+31
2013-01-28Path: introduce MPD_PATH_MAX_UTF8Denis Krjuchkov1-0/+10
2013-01-26Path: define MPD_PATH_MAX to 260 on WindowsDenis Krjuchkov1-1/+3
2013-01-26Path: ToUTF() returns std::stringDenis Krjuchkov2-8/+17
2013-01-22Path: move to fs subdirectoryDenis Krjuchkov2-0/+395
2013-01-22FileSystem: extract DirectoryReader, improve the restDenis Krjuchkov3-0/+283
- DirectoryReader is extracted to separate header - FileSystem.cxx/FileSystem.hxx/DirectoryReader.hxx moved to fs/ subdir - Functions return true on success, instead of 0 (where applicable) - ReadLink return result instead of out parameter - UnlinkFile is renamed to RemoveFile - CheckExists/CheckIsRegular/CheckIsDirectory are renamed to PathExists/FileExists/DirectoryExists