aboutsummaryrefslogtreecommitdiffstats
path: root/src/fs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* GetBaseUTF8Max Kellermann2013-10-212-0/+62
|
* fs/AllocatedPath: don't include glib.hMax Kellermann2013-10-211-4/+0
|
* fs/Path: rename to AllocatedPathMax Kellermann2013-10-177-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.
* fs/Path: move definitions to struct PathTraitsMax Kellermann2013-10-174-90/+129
|
* fs/Path: include clenaupMax Kellermann2013-10-171-1/+1
|
* fs/Charset: GetFSCharset() returns "utf-8" by defaultMax Kellermann2013-10-172-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.
* fs/Charset: default filesystem charset is UTF-8Max Kellermann2013-10-172-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.
* fs/Charset: don't allow nullptr argumentsMax Kellermann2013-10-173-7/+8
|
* fs/Path: move configuration code to Config.cxxMax Kellermann2013-10-176-132/+271
|
* fs/Path: move path_domain to Domain.hxxMax Kellermann2013-10-174-5/+50
|
* fs/Path: make fs_charset staticMax Kellermann2013-10-171-1/+1
|
* fs/Path: include cleanupMax Kellermann2013-10-171-1/+0
|
* fs/Limits: convert macro to "constexpr"Max Kellermann2013-10-173-12/+11
|
* fs/Path: move MPD_PATH_MAX to Limits.hxxMax Kellermann2013-10-174-14/+42
|
* gcc.h: rename to Compiler.hMax Kellermann2013-10-152-2/+2
|
* *: use WIN32 instead of G_OS_WIN32Max Kellermann2013-10-151-3/+3
|
* fs/Path: add method IsAbsolute()Max Kellermann2013-10-141-0/+31
|
* fs/Path: add separator constants/functionsMax Kellermann2013-10-142-2/+48
|
* fs/Path: add method RelativeFS()Max Kellermann2013-10-142-0/+31
| | | | Move code from map_fs_to_utf8().
* fs/Path: add method data()Max Kellermann2013-10-141-0/+9
|
* Log: new logging library APIMax Kellermann2013-10-021-5/+5
| | | | | Prepare to migrate away from GLib. Currently, we're still using GLib as a backend.
* filesystem/Path: use std::stringMax Kellermann2013-10-022-78/+43
|
* Path: add FromUTF8() overload that returns an ErrorMax Kellermann2013-09-122-0/+18
|
* ConfigPath: move path_domain to system/Path.cxxMax Kellermann2013-09-122-0/+5
|
* mpd_error.h: remove obsolete headerMax Kellermann2013-09-051-2/+2
| | | | Migrate the remaining callers to FatalError().
* conf.h: remove obsolete headerMax Kellermann2013-09-051-1/+1
| | | | | Use only ConfigData.hxx in plugin sources to reduce header dependencies.
* os/FileSystem: disable mkfifo() wrapper on WIN32Max Kellermann2013-08-071-0/+4
|
* ConfigPath: return a Path objectMax Kellermann2013-08-071-0/+6
| | | | | Migrate all callers to use Path directly, instead of doing the conversion in each caller.
* Makefile.am: move sources to libsystem.aMax Kellermann2013-08-071-1/+1
|
* DirectoryReader: rename Failed() to HasFailed() for consistency with TextFileDenis Krjuchkov2013-05-051-4/+4
|
* Path.hxx: add GetDirectoryName() methodDenis Krjuchkov2013-02-021-0/+9
|
* FileSystem.hxx: add FOpen modes for appending filesDenis Krjuchkov2013-02-021-0/+10
|
* Path::FromUTF8() returns nulled instance on error, add error handling where ↵Denis Krjuchkov2013-01-282-7/+1
| | | | required
* Path: convert remaining funcs to methods, keep fs_charset as std::stringDenis Krjuchkov2013-01-282-22/+20
|
* Path: merge utf8_to_fs_charset() into Path::FromUTF8()Denis Krjuchkov2013-01-282-13/+4
|
* Path: convert fs_charset_to_utf8() to static method Path::ToUTF8()Denis Krjuchkov2013-01-282-22/+31
|
* Path: introduce MPD_PATH_MAX_UTF8Denis Krjuchkov2013-01-281-0/+10
|
* Path: define MPD_PATH_MAX to 260 on WindowsDenis Krjuchkov2013-01-261-1/+3
|
* Path: ToUTF() returns std::stringDenis Krjuchkov2013-01-262-8/+17
|
* Path: move to fs subdirectoryDenis Krjuchkov2013-01-222-0/+395
|
* FileSystem: extract DirectoryReader, improve the restDenis Krjuchkov2013-01-223-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