Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2013-10-14 | fs/Path: add method IsAbsolute() | Max Kellermann | 1 | -1/+1 | |
2013-09-12 | ConfigPath: return early on "~" | Max Kellermann | 1 | -3/+6 | |
Previously, the pointer was moved to undefined memory. | |||||
2013-09-12 | ConfigPath: skip the slash of "~/" | Max Kellermann | 1 | -3/+3 | |
Increment the "path" earlier. | |||||
2013-09-12 | ConfigPath: remove the "~/" from the constructed path | Max Kellermann | 1 | -6/+9 | |
This was building broken paths like "/home/foo/~/bar". Bug found by Maarten de Vries. | |||||
2013-09-12 | ConfigPath: simplify the duplicate tilde check | Max Kellermann | 1 | -5/+5 | |
2013-09-12 | ConfigPath: convert "home" variable to Path object | Max Kellermann | 1 | -9/+11 | |
Use Path::FromUTF8() for the g_get_home_dir() return value instead of assuming it's already FS charset. | |||||
2013-09-12 | ConfigPath: move code to GetHome() | Max Kellermann | 1 | -28/+48 | |
2013-09-12 | ConfigPath: include cleanup | Max Kellermann | 1 | -16/+0 | |
2013-09-12 | Path: add FromUTF8() overload that returns an Error | Max Kellermann | 1 | -6/+2 | |
2013-09-12 | ConfigPath: move path_domain to system/Path.cxx | Max Kellermann | 1 | -3/+0 | |
2013-09-05 | conf.h: remove obsolete header | Max Kellermann | 1 | -1/+2 | |
Use only ConfigData.hxx in plugin sources to reduce header dependencies. | |||||
2013-09-04 | util/Error: new error passing library | Max Kellermann | 1 | -20/+16 | |
Replaces GLib's GError. | |||||
2013-08-07 | ConfigPath: return a Path object | Max Kellermann | 1 | -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 GLib | Max Kellermann | 1 | -2/+2 | |
2013-04-09 | utils: convert to C++ | Max Kellermann | 1 | -13/+13 | |
2013-01-29 | require GLib 2.24 | Max Kellermann | 1 | -1/+0 | |
2011-12-12 | configure/utils: Add ipv6 support for mingw build | Avuton Olrich | 1 | -1/+5 | |
2011-09-09 | utils: parsePath() returns GError on failure | Max Kellermann | 1 | -6/+21 | |
Better error messages. | |||||
2011-09-09 | utils: pass a const string to parsePath() | Max Kellermann | 1 | -14/+12 | |
Remove the slash hack, allocate memory for the user name. | |||||
2011-09-09 | utils: eliminate local variable "pos" | Max Kellermann | 1 | -3/+4 | |
Just advance the "path" pointer. | |||||
2011-01-29 | copyright year 2011 | Max Kellermann | 1 | -1/+1 | |
2010-12-23 | utils: move string_array_contains() to string_util.c | Max Kellermann | 1 | -13/+0 | |
2009-12-31 | Update copyright notices. | Avuton Olrich | 1 | -1/+1 | |
2009-11-12 | include config.h in all sources | Max Kellermann | 1 | -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-08 | utils: removed function set_nonblocking() | Max Kellermann | 1 | -30/+0 | |
It's not used anymore, its features have been moved to fd_util.c. | |||||
2009-11-06 | utils: renamed stringFoundInStringArray() | Max Kellermann | 1 | -7/+9 | |
No CamelCase. Use bool instead of int. Make both arguments mandatory. | |||||
2009-10-20 | mapper, update, ...: use g_build_filename(), G_DIR_SEPARATOR, ... | Max Kellermann | 1 | -1/+1 | |
Try to be as portable as possible, use GLib path name functions and macros. | |||||
2009-04-28 | utils: use g_ascii_strcasecmp() instead of strcasecmp() | Max Kellermann | 1 | -1/+1 | |
strcasecmp() is locale dependent, making it a bad choice for internal string comparisons. | |||||
2009-03-27 | More debugging for Win32 ioctlsocket: complain if it's not a Winsock | Sean McNamara | 1 | -3/+12 | |
socket, because there is no ioctl for non-sockets on Windows | |||||
2009-03-13 | all: Update copyright header. | Avuton Olrich | 1 | -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-19 | utils: use g_usleep() instead of my_usleep() | Max Kellermann | 1 | -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-25 | use config_get_string() instead of config_get_param() | Max Kellermann | 1 | -5/+4 | |
config_get_string() is easier to use than config_get_param() because it unpacks the config_param struct. | |||||
2009-01-17 | conf: no CamelCase, part I | Max Kellermann | 1 | -1/+1 | |
Renamed functions, types, variables. | |||||
2009-01-08 | added missing explicit config.h includes | Max Kellermann | 1 | -2/+1 | |
2009-01-03 | utils: removed unused functions | Max Kellermann | 1 | -55/+3 | |
Removed all allocation functions, xwrite(), xread(), ARRAY_SIZE(). Those have been superseded by GLib. | |||||
2009-01-03 | tag: use g_strescape() to eliminate evil characters | Max Kellermann | 1 | -7/+0 | |
This always allocates strings on the heap, but we can delete the stripReturnChar() function now. | |||||
2009-01-03 | listen: use GLib instead of utils.h | Max Kellermann | 1 | -14/+0 | |
2008-12-30 | main_notify: make the read side of the pipe blocking | Max Kellermann | 1 | -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-30 | utils: port set_nonblocking() to WIN32 | Max Kellermann | 1 | -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-30 | utils: implement my_usleep() with Sleep() on WIN32 | Max Kellermann | 1 | -0/+8 | |
Sleep() has only millisecond granularity, but good enough for now. | |||||
2008-12-29 | utils: implement parsePath() with g_strdup() on WIN32 | Max Kellermann | 1 | -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-29 | utils: use g_get_home_dir() | Max Kellermann | 1 | -6/+4 | |
Use g_get_home_dir() to get the home directory of the current user. This will be portable to win32. | |||||
2008-12-29 | utils: make variables more local in parsePath() | Max Kellermann | 1 | -16/+22 | |
Declare variables where they are really used. | |||||
2008-12-29 | utils: use GLib logging | Max Kellermann | 1 | -14/+13 | |
2008-12-28 | Remove xpthread_* wrappers | Thomas Jansen | 1 | -28/+0 | |
2008-12-28 | utils: removed myFgets() | Max Kellermann | 1 | -12/+0 | |
Replaced myFgets() with fgets() + g_strchomp(). | |||||
2008-12-09 | utils: moving stringFoundInStringArray() from decoder into utils | Viliam Mateicka | 1 | -0/+11 | |
2008-12-02 | replaced mpd_malloc by G_GNUC_MALLOC | Thomas Jansen | 1 | -4/+4 | |
We want to remove gcc.h eventually. This takes care of all the G_GNUC_MALLOC macros. | |||||
2008-12-02 | replaced mpd_likely/mpd_unlikely by G_LIKELY/G_UNLIKELY | Thomas Jansen | 1 | -7/+8 | |
We want to remove gcc.h eventually. This takes care of all the G_LIKELY/G_UNLIKELY macros. | |||||
2008-11-01 | utils: use GUINT32_FROM_LE() instead of readLEuint32() | Max Kellermann | 1 | -7/+0 | |
Eliminate code already provided by GLib. |