- 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.
-
- 14 Jan, 2009 1 commit
-
-
Max Kellermann authored
Path names in the directory and song structs are always encoded in UTF-8. Don't use strcmp(), it cannot handle UTF-8 characters properly. Use GLib's UTF-8 aware g_utf8_collate() function for that.
-
- 03 Jan, 2009 1 commit
-
-
Max Kellermann authored
-
- 29 Dec, 2008 1 commit
-
-
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.
-
- 28 Dec, 2008 2 commits
-
-
Thomas Jansen authored
-
Thomas Jansen authored
-
- 26 Oct, 2008 1 commit
-
-
Max Kellermann authored
On some systems, string.h declares basename(). This emits a shadow warning. Change the variable name.
-
- 20 Oct, 2008 5 commits
-
-
Eric Wong authored
{song,dir}vec_for_each each failed to gracefully handle deleted files when iterating through. While we were thread-safe, we were not safe within the calling thread. If a callback we passed caused sv->nr to shring, our index would still increment; causing files to stay in the database. A way to test this is to remove 10 or so contiguous songs from a >10 song directory.
-
Eric Wong authored
Like the songvec nr_lock, only one lock is used for all traversals since they're rarely changed. This only projects traversals, but not the individual structures themselves.
-
Eric Wong authored
We definitely don't modify them here.
-
Eric Wong authored
This will make it easier to introduce locking
-
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.
-
- 14 Oct, 2008 1 commit
-
-
Eric Wong authored
Found by Valgrind while looking for another bug... Hmm.. I should really just make this code generic since they're duplicated...
-
- 13 Oct, 2008 1 commit
-
-
Max Kellermann authored
It is invalid to pass a path with the wrong dirname to dirvec_find(). To be able to find a subdirectory only by its basename, compare only the basename of both paths.
-
- 09 Oct, 2008 1 commit
-
-
Max Kellermann authored
dirvec_find() does not modify the object, thus it should get a const pointer.
-
- 08 Oct, 2008 4 commits
-
-
Max Kellermann authored
CamelCase is ugly, rename the functions.
-
Max Kellermann authored
When there are standardized headers, use these instead of the bloated os_compat.h.
-
Max Kellermann authored
The struct can be forward-declared by other headers, which relaxes the header dependencies.
-
Max Kellermann authored
Having all functions as static (non-inline) functions generates GCC warnings, and duplicates binary code across several object files. Most of dirvec's methods are too complex for becoming inline functions. Move them all to dirvec.c and publish the prototypes in dirvec.h.
-
- 29 Sep, 2008 1 commit
-
-
Eric Wong authored
Small memory reduction compared to songvec since most users have much fewer dirs than songs, but still nice to have.
-