aboutsummaryrefslogtreecommitdiffstats
path: root/src/fs/AllocatedPath.cxx (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-01-01Copyright year 2015Max Kellermann1-1/+1
2014-11-30fs/Charset: return std::string from PathFromUTF8()Max Kellermann1-20/+1
Don't expose pointer that requires the caller to invoke g_free(), because that's GLib-only.
2014-11-29fs/Charset: add macro HAVE_FS_CHARSETMax Kellermann1-1/+1
2014-11-28Compiler.h: exclude clang from GCC_CHECK_VERSION()Max Kellermann1-1/+1
2014-11-11Construct a Null AllocatedPath if the filename conversion into UTF8 failedFlorent Le Coz1-1/+5
2014-02-17fs/Charset: disable if GLib is disabledMax Kellermann1-0/+10
2014-01-13copyright year 2014Max Kellermann1-1/+1
2013-12-05fs/AllocatedPath.cxx: don't use g_path_get_dirnameDenis Krjuchkov1-1/+1
2013-12-05fs/Traits: split PathTraits type into PathTraitsFS and PathTraitsUTF8Denis Krjuchkov1-3/+3
2013-12-03fs/AllocatedPath: use PathTraits::BuildFSDenis Krjuchkov1-6/+0
2013-11-28include cleanup using iwyuMax Kellermann1-1/+0
2013-10-17fs/Path: rename to AllocatedPathMax Kellermann1-18/+19
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 Kellermann1-8/+3
2013-10-17fs/Path: move configuration code to Config.cxxMax Kellermann1-112/+5
2013-10-17fs/Path: move path_domain to Domain.hxxMax Kellermann1-3/+1
2013-10-17fs/Path: make fs_charset staticMax Kellermann1-1/+1
2013-10-17fs/Limits: convert macro to "constexpr"Max Kellermann1-1/+1
2013-10-17fs/Path: move MPD_PATH_MAX to Limits.hxxMax Kellermann1-1/+2
2013-10-15gcc.h: rename to Compiler.hMax Kellermann1-1/+1
2013-10-15*: use WIN32 instead of G_OS_WIN32Max Kellermann1-3/+3
2013-10-14fs/Path: add separator constants/functionsMax Kellermann1-2/+19
2013-10-14fs/Path: add method RelativeFS()Max Kellermann1-0/+22
Move code from map_fs_to_utf8().
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 Kellermann1-0/+20
2013-09-12Path: add FromUTF8() overload that returns an ErrorMax Kellermann1-0/+13
2013-09-12ConfigPath: move path_domain to system/Path.cxxMax Kellermann1-0/+3
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-01-28Path::FromUTF8() returns nulled instance on error, add error handling where ↵Denis Krjuchkov1-3/+0
required
2013-01-28Path: convert remaining funcs to methods, keep fs_charset as std::stringDenis Krjuchkov1-16/+10
2013-01-28Path: merge utf8_to_fs_charset() into Path::FromUTF8()Denis Krjuchkov1-3/+2
2013-01-28Path: convert fs_charset_to_utf8() to static method Path::ToUTF8()Denis Krjuchkov1-14/+21
2013-01-28Path: introduce MPD_PATH_MAX_UTF8Denis Krjuchkov1-0/+10
2013-01-26Path: ToUTF() returns std::stringDenis Krjuchkov1-0/+12
2013-01-22Path: move to fs subdirectoryDenis Krjuchkov1-1/+1
2013-01-17path: convert to C++Max Kellermann1-2/+2
2013-01-10path: move code to IsSupportedCharset()Max Kellermann1-6/+15
2013-01-10path: make the "win_charset" buffer staticMax Kellermann1-1/+1
It is illegal to use it after going out of scope.
2011-10-23path: autodetect filesystem encoding on Win32Denis Krjuchkov1-0/+16
WinAPI explicitly declares filesystem encoding. It can be determined by GetACP(). Use that instead of Glib routine that always "detects" UTF-8 on Win32, which is incorrect for MPD case.
2011-01-29copyright year 2011Max Kellermann1-1/+1
2010-09-25eliminate g_error() usageThomas Jansen1-1/+2
Replaced all occurrences of g_error() with MPD_ERROR() located in a new header file 'mpd_error.h'. This macro uses g_critical() to print the error message and then exits gracefully in contrast to g_error() which would internally call abort() to produce a core dump. The macro name is distinctive and allows to find all places with dubious error handling. The long-term goal is to get rid of MPD_ERROR() altogether. To facilitate the eventual removal of this macro it was added in a new header file rather than to an existing header file. This fixes #2995 and #3007.
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-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-02-20path: don't export path_set_fs_charset()Max Kellermann1-1/+2
The function path_set_fs_charset() is only used in path.c.
2009-02-20path: validate configured character setMax Kellermann1-0/+11
2009-01-25use config_get_string() instead of config_get_param()Max Kellermann1-5/+2
config_get_string() is easier to use than config_get_param() because it unpacks the config_param struct.
2009-01-17conf: no CamelCase, part IMax Kellermann1-1/+2
Renamed functions, types, variables.
2009-01-08path: include cleanupMax Kellermann1-1/+0
2009-01-08path: allocate buffer in fs_charset conversion functionsMax Kellermann1-19/+10
Don't use fixed static buffers. GLib allocates a new string for us anyway, let's just return this one instead of copying it.