- 01 Apr, 2009 2 commits
-
-
Max Kellermann authored
Moved code from db_get_song().
-
Max Kellermann authored
Renamed directory_get_directory() to directory_lookup_directory(). Added API documentation.
-
- 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.
-
- 02 Mar, 2009 3 commits
-
-
Max Kellermann authored
Do error reporting with GLib's GError library in this library, too.
-
Max Kellermann authored
Do error reporting with GLib's GError library.
-
Max Kellermann authored
Renamed a bunch of variables.
-
- 27 Feb, 2009 1 commit
-
-
Max Kellermann authored
Moved some of them to to directory_save.c, and others to database.c.
-
- 12 Feb, 2009 1 commit
-
-
Max Kellermann authored
When you change the filesystem charset, discard the old database file and create a new one. The old database file will most likely contain stale or invalid information.
-
- 25 Jan, 2009 2 commits
-
-
Max Kellermann authored
http://xkcd.com/292/
-
Max Kellermann authored
On some platforms, g_free() must be used for memory allocated by GLib. This patch intends to correct a lot of occurrences, but is probably not complete.
-
- 18 Jan, 2009 2 commits
-
-
Max Kellermann authored
Without a music_directory, MPD is an excellent streaming client.
-
Max Kellermann authored
Don't include conf.h in database.c.
-
- 17 Jan, 2009 2 commits
-
-
Max Kellermann authored
Don't return a writable pointer.
-
Max Kellermann authored
Renamed functions, types, variables.
-
- 04 Jan, 2009 4 commits
-
-
Max Kellermann authored
Make db_load(), db_save() and db_check() return bool instead of int.
-
Max Kellermann authored
For updating the database, directory_update_init() should be called explicitly.
-
Max Kellermann authored
-
Max Kellermann authored
Start the daemon after --create-db. This makes --create-db a flag which discards the old database and starts with a fresh one.
-
- 02 Jan, 2009 1 commit
-
-
Max Kellermann authored
-
- 01 Jan, 2009 3 commits
-
-
Max Kellermann authored
Make the event_pipe (formerly main_notify) send/receive a set of events, with a callback for each one. The default event PIPE_EVENT_SIGNAL does not have a callback. It is still there for waking up the main thread, when it is waiting for the player thread.
-
Max Kellermann authored
Continuing the previous patch.
-
Max Kellermann authored
We are going to migrate away from the concept of notifying the main thread. There should be events sent to it instead. This patch starts a series to implement that.
-
- 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.
-
- 28 Dec, 2008 1 commit
-
-
Max Kellermann authored
Replaced myFgets() with fgets() + g_strchomp().
-
- 05 Nov, 2008 1 commit
-
-
Max Kellermann authored
Rename variables and functions.
-
- 28 Oct, 2008 1 commit
-
-
Max Kellermann authored
Remove duplicated code from MPD.
-
- 20 Oct, 2008 1 commit
-
-
Max Kellermann authored
Again, GLib's version is more robust than ours.
-
- 09 Oct, 2008 7 commits
-
-
Max Kellermann authored
Since the return value cannot be -1 anymore, we can make it unsigned.
-
Max Kellermann authored
The documentation for directory_update_init() was incorrect: a job ID must be positive, not non-negative. If the update queue is full and no job was created, it makes more sense to return 0 instead of -1, because it is more consistent with the return value of isUpdatingDB().
-
Max Kellermann authored
If the user requests database update during startup, call directory_update_init(). This should be changed to fully asynchronous update later. For this to work, main_notify has to be initialized before db_init().
-
Max Kellermann authored
Search'n'replace typo..
-
Max Kellermann authored
Remove clutter from directory.c. Everything which saves or loads to/from the hard disk goes to directory_save.c, and code which sends directory information to the client is moved into directory_print.c.
-
Max Kellermann authored
Use sizeof(buffer) instead.
-
Max Kellermann authored
Removed a superfluous closure.
-
- 08 Oct, 2008 5 commits
-
-
Max Kellermann authored
For the root directory, let's set path to an empty string. This saves a few checks.
-
Max Kellermann authored
CamelCase is ugly, rename the functions.
-
Max Kellermann authored
Yet another CamelCase removal patch.
-
Max Kellermann authored
The same can be achieved with directory_print(db_get_directory()).
-
Max Kellermann authored
Taming the directory.c monster, part II: move the database management stuff to database. directory.c should only contain code which works on directory objects.
-