aboutsummaryrefslogtreecommitdiffstats
path: root/src/ConfigPath.cxx (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-01-13copyright year 2014Max Kellermann1-1/+1
2013-12-15util/Tokenizer, ...: include cleanupMax Kellermann1-2/+0
2013-12-08ConfigPath: use standard directory APIDenis Krjuchkov1-6/+7
2013-12-05fs/Traits: split PathTraits type into PathTraitsFS and PathTraitsUTF8Denis Krjuchkov1-1/+1
2013-10-19ConfigPath: use std::stringMax Kellermann1-6/+5
2013-10-17fs/Path: rename to AllocatedPathMax Kellermann1-16/+16
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-1/+2
2013-10-17fs/Path: move path_domain to Domain.hxxMax Kellermann1-0/+1
2013-10-14fs/Path: add method IsAbsolute()Max Kellermann1-1/+1
2013-09-12ConfigPath: return early on "~"Max Kellermann1-3/+6
Previously, the pointer was moved to undefined memory.
2013-09-12ConfigPath: skip the slash of "~/"Max Kellermann1-3/+3
Increment the "path" earlier.
2013-09-12ConfigPath: remove the "~/" from the constructed pathMax Kellermann1-6/+9
This was building broken paths like "/home/foo/~/bar". Bug found by Maarten de Vries.
2013-09-12ConfigPath: simplify the duplicate tilde checkMax Kellermann1-5/+5
2013-09-12ConfigPath: convert "home" variable to Path objectMax Kellermann1-9/+11
Use Path::FromUTF8() for the g_get_home_dir() return value instead of assuming it's already FS charset.
2013-09-12ConfigPath: move code to GetHome()Max Kellermann1-28/+48
2013-09-12ConfigPath: include cleanupMax Kellermann1-16/+0
2013-09-12Path: add FromUTF8() overload that returns an ErrorMax Kellermann1-6/+2
2013-09-12ConfigPath: move path_domain to system/Path.cxxMax Kellermann1-3/+0
2013-09-05conf.h: remove obsolete headerMax Kellermann1-1/+2
Use only ConfigData.hxx in plugin sources to reduce header dependencies.
2013-09-04util/Error: new error passing libraryMax Kellermann1-20/+16
Replaces GLib's GError.
2013-08-07ConfigPath: return a Path objectMax Kellermann1-8/+17
Migrate all callers to use Path directly, instead of doing the conversion in each caller.
2013-08-04*: use gcc.h macros instead of GLibMax Kellermann1-2/+2
2013-04-09utils: convert to C++Max Kellermann1-13/+13
2013-01-29require GLib 2.24Max Kellermann1-1/+0
2011-12-12configure/utils: Add ipv6 support for mingw buildAvuton Olrich1-1/+5
2011-09-09utils: parsePath() returns GError on failureMax Kellermann1-6/+21
Better error messages.
2011-09-09utils: pass a const string to parsePath()Max Kellermann1-14/+12
Remove the slash hack, allocate memory for the user name.
2011-09-09utils: eliminate local variable "pos"Max Kellermann1-3/+4
Just advance the "path" pointer.
2011-01-29copyright year 2011Max Kellermann1-1/+1
2010-12-23utils: move string_array_contains() to string_util.cMax Kellermann1-13/+0
2009-12-31Update copyright notices.Avuton Olrich1-1/+1
2009-11-12include config.h in all sourcesMax Kellermann1-1/+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-11-08utils: removed function set_nonblocking()Max Kellermann1-30/+0
It's not used anymore, its features have been moved to fd_util.c.
2009-11-06utils: renamed stringFoundInStringArray()Max Kellermann1-7/+9
No CamelCase. Use bool instead of int. Make both arguments mandatory.
2009-10-20mapper, update, ...: use g_build_filename(), G_DIR_SEPARATOR, ...Max Kellermann1-1/+1
Try to be as portable as possible, use GLib path name functions and macros.
2009-04-28utils: use g_ascii_strcasecmp() instead of strcasecmp()Max Kellermann1-1/+1
strcasecmp() is locale dependent, making it a bad choice for internal string comparisons.
2009-03-27More debugging for Win32 ioctlsocket: complain if it's not a WinsockSean McNamara1-3/+12
socket, because there is no ioctl for non-sockets on Windows
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-19utils: use g_usleep() instead of my_usleep()Max Kellermann1-14/+0
Now that I've found this nice function in the GLib docs, we can finally remove our custom sleep function. Still all those callers of g_usleep() have to be migrated one day to use events, instead of regular polling.
2009-01-25use config_get_string() instead of config_get_param()Max Kellermann1-5/+4
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/+1
Renamed functions, types, variables.
2009-01-08added missing explicit config.h includesMax Kellermann1-2/+1
2009-01-03utils: removed unused functionsMax Kellermann1-55/+3
Removed all allocation functions, xwrite(), xread(), ARRAY_SIZE(). Those have been superseded by GLib.
2009-01-03tag: use g_strescape() to eliminate evil charactersMax Kellermann1-7/+0
This always allocates strings on the heap, but we can delete the stripReturnChar() function now.
2009-01-03listen: use GLib instead of utils.hMax Kellermann1-14/+0
2008-12-30main_notify: make the read side of the pipe blockingMax Kellermann1-10/+0
Currently, both sides of the pipe are blocking, although we do not need blocking read(). Convert it back to blocking. Eliminate the select() from wait_main_task().
2008-12-30utils: port set_nonblocking() to WIN32Max Kellermann1-0/+6
The new WIN32 version of set_nonblocking() can only deal with sockets, i.e. it will fail on main_notify.c. On WIN32, we have to reimplement main_notify.c anyway, so this is not a big deal.
2008-12-30utils: implement my_usleep() with Sleep() on WIN32Max Kellermann1-0/+8
Sleep() has only millisecond granularity, but good enough for now.
2008-12-29utils: implement parsePath() with g_strdup() on WIN32Max Kellermann1-2/+10
On WIN32, parsePath() now simply duplicates the input string. There is currently nothing special we can do here. The old code was not portable on WIN32.
2008-12-29utils: use g_get_home_dir()Max Kellermann1-6/+4
Use g_get_home_dir() to get the home directory of the current user. This will be portable to win32.