- 13 Mar, 2009 1 commit
-
-
Avuton Olrich authored
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.
-
- 20 Feb, 2009 2 commits
-
-
Max Kellermann authored
The function path_set_fs_charset() is only used in path.c.
-
Max Kellermann authored
-
- 25 Jan, 2009 1 commit
-
-
Max Kellermann authored
config_get_string() is easier to use than config_get_param() because it unpacks the config_param struct.
-
- 17 Jan, 2009 1 commit
-
-
Max Kellermann authored
Renamed functions, types, variables.
-
- 08 Jan, 2009 2 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
Don't use fixed static buffers. GLib allocates a new string for us anyway, let's just return this one instead of copying it.
-
- 04 Jan, 2009 2 commits
-
-
Max Kellermann authored
Pass NULL instead of &error to g_convert(). We're not interested in the error object.
-
Max Kellermann authored
Use GLib's g_build_filename() instead of pfx_dir().
-
- 03 Jan, 2009 1 commit
-
-
Max Kellermann authored
-
- 29 Dec, 2008 2 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
Only include headers which are really needed. os_compat.h aimed to make MPD easily portable, but was never actually made portable.
-
- 02 Dec, 2008 1 commit
-
-
Thomas Jansen authored
We want to remove gcc.h eventually. This takes care of all the G_LIKELY/G_UNLIKELY macros.
-
- 20 Nov, 2008 1 commit
-
-
Konstantin Sobolev authored
g_convert() wants the destination character set first. This was mixed up.
-
- 05 Nov, 2008 4 commits
-
-
Max Kellermann authored
The code which had a possible error condition had been removed.
-
Max Kellermann authored
Make the local variable "charset" const, and don't duplicate its value. It is already duplicated by path_set_fs_charset().
-
Max Kellermann authored
GLib provides the function g_get_filename_charsets() which determines the file system character set. This changes MPD's fallback: GLib prefers UTF-8 as a fallback. MPD used to fall back to ISO Latin 1.
-
Max Kellermann authored
Rename variables and functions.
-
- 31 Oct, 2008 4 commits
-
-
Max Kellermann authored
We don't need to sanitize the path, because the mapper already checks for malformed paths.
-
Max Kellermann authored
Added the function map_spl_utf8_to_fs() which replaces utf8_to_fs_playlist_path().
-
Max Kellermann authored
Removed duplicated code.
-
Max Kellermann authored
g_error_free() was missing in case g_convert() failed.
-
- 20 Oct, 2008 3 commits
-
-
Max Kellermann authored
There was only one user of pathcpy_trunc(), which can be eliminated.
-
Max Kellermann authored
Again, GLib's version is more robust than ours.
-
Max Kellermann authored
GLib's g_path_get_basename() is much more reliable than mpd_basename(). The latter could be tricked into an assertion failure.
-
- 15 Oct, 2008 3 commits
-
-
Max Kellermann authored
Moved the musicDir variable and its initialization code from path.c to mapper.c.
-
Max Kellermann authored
When the music directory is not mounted yet, let MPD start anyway.
-
Max Kellermann authored
GLib provides an easier API for character set conversion than iconv(). Use g_convert() / g_convert_with_fallback() for all character conversions. We should optimize the path.h API later to return a newly allocated buffer, so we can just pass GLib's return value.
-
- 29 Sep, 2008 1 commit
-
-
Eric Wong authored
This is like basename(3) but with predictable semantics independent of C library or build options used. This is also much more strict and does not account for trailing slashes (mpd should never deal with trailing slashes on internal functions).
-
- 29 Aug, 2008 1 commit
-
-
Max Kellermann authored
At several places, we create temporary copies of non-null-terminated strings, just to use them in functions like validUtf8String(). We can save this temporary allocation and avoid heap fragmentation if we add a length parameter instead of expecting a null-terminated string.
-
- 05 Feb, 2008 1 commit
-
-
Max Kellermann authored
[ew: cleaned up the dirty union hack a bit] Signed-off-by:
Eric Wong <normalperson@yhbt.net> git-svn-id: https://svn.musicpd.org/mpd/trunk@7180 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-
- 03 Jan, 2008 2 commits
-
-
Eric Wong authored
This will make refactoring features easier, especially now that pthreads support and larger refactorings are on the horizon. Hopefully, this will make porting to other platforms (even non-UNIX-like ones for masochists) easier, too. os_compat.h will house all the #includes for system headers considered to be the "core" of MPD. Headers for optional features will be left to individual source files. git-svn-id: https://svn.musicpd.org/mpd/trunk@7130 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-
Eric Wong authored
git-svn-id: https://svn.musicpd.org/mpd/trunk@7128 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-
- 01 Jan, 2008 1 commit
-
-
Eric Wong authored
git-svn-id: https://svn.musicpd.org/mpd/trunk@7115 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-
- 28 Dec, 2007 1 commit
-
-
Eric Wong authored
thread-safety work in preparation for rewrite to use pthreads Expect no regressions against trunk (r7078), possibly minor performance improvements in update (due to fewer heap allocations), but increased stack usage. Applied the following patches: * maxpath_str for reentrancy (temporary fix, reverted) * path: start working on thread-safe variants of these methods * Re-entrancy work on path/character-set conversions * directory.c: exploreDirectory() use reentrant functions here * directory/update: more use of reentrant functions + cleanups * string_toupper: a strdup-less version of strDupToUpper * get_song_url: a static-variable-free version of getSongUrl() * Use reentrant/thread-safe get_song_url everywhere * replace rmp2amp with the reentrant version, rmp2amp_r * Get rid of the non-reentrant/non-thread-safe rpp2app, too. * buffer2array: assert strdup() returns a usable value in unit tests * replace utf8ToFsCharset and fsCharsetToUtf8 with thread-safe variants * fix storing playlists w/o absolute paths * parent_path(), a reentrant version of parentPath() * parentPath => parent_path for reentrancy and thread-safety * allow "make test" to automatically run embedded unit tests * remove convStrDup() and maxpath_str() * use MPD_PATH_MAX everywhere instead of MAXPATHLEN * path: get rid of appendSlash, pfx_path and just use pfx_dir * get_song_url: fix the ability to play songs in the top-level music_directory git-svn-id: https://svn.musicpd.org/mpd/trunk@7106 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-
- 27 Aug, 2007 1 commit
-
-
J. Alexander Treuman authored
git-svn-id: https://svn.musicpd.org/mpd/trunk@6826 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-
- 26 May, 2007 1 commit
-
-
J. Alexander Treuman authored
call to FATAL(). git-svn-id: https://svn.musicpd.org/mpd/trunk@6276 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-
- 05 Apr, 2007 1 commit
-
-
Avuton Olrich authored
git-svn-id: https://svn.musicpd.org/mpd/trunk@5834 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-
- 18 Feb, 2007 1 commit
-
-
J. Alexander Treuman authored
implementation, and fixing it is a big enough job that I don't know when I'll get around to it. Probably best just starting from scratch anyhow. git-svn-id: https://svn.musicpd.org/mpd/trunk@5373 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-
- 14 Jan, 2007 1 commit
-
-
Eric Wong authored
Some compilers and linkers aren't smart enough to optimize this, as global variables are implictly initialized to zero. As a result, binaries are a bit smaller as more goes in the .bss and less in the text section. git-svn-id: https://svn.musicpd.org/mpd/trunk@5254 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-