- 13 Sep, 2011 2 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
Use this struct for db_walk().
-
- 09 May, 2011 1 commit
-
-
Max Kellermann authored
Keep those when scanning for empty directories. The check in playlist_vector_is_empty() was missing.
-
- 29 Jan, 2011 1 commit
-
-
Max Kellermann authored
-
- 21 Dec, 2010 1 commit
-
-
Max Kellermann authored
Cast the constant to dev_t, not to unsigned.
-
- 23 Sep, 2010 1 commit
-
-
Max Kellermann authored
Fix gcc warning.
-
- 21 Jul, 2010 1 commit
-
-
Max Kellermann authored
Don't open the music directory for each "lsinfo" call. Get the list of playlist files from the memory database.
-
- 01 Jan, 2010 1 commit
-
-
Avuton Olrich authored
-
- 12 Nov, 2009 1 commit
-
-
Max Kellermann authored
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.
-
- 11 Nov, 2009 1 commit
-
-
Max Kellermann authored
*sigh* another Large File breakage. ino_t/dev_t this time. We need to include config.h in directory.h to get this straight.
-
- 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.
-
- 09 Mar, 2009 1 commit
-
-
Jochen Keil authored
[mk: fixed whitespace errors; use delete_song() instead of songvec_delete()]
-
- 28 Feb, 2009 1 commit
-
-
Max Kellermann authored
Remember the modification time of each directory. This is important for archives (which are virtual directories right now), but may also be useful for an automatic update mechanism.
-
- 27 Feb, 2009 1 commit
-
-
Max Kellermann authored
Moved some of them to to directory_save.c, and others to database.c.
-
- 04 Jan, 2009 1 commit
-
-
Max Kellermann authored
directory_is_root() is cheaper than isRootDirectory(directory_get_path()).
-
- 16 Dec, 2008 1 commit
-
-
Viliam Mateicka authored
-
- 31 Oct, 2008 1 commit
-
-
Max Kellermann authored
"LOG_H" is a macro which is also used by ffmpeg/log.h. This is ffmpeg's fault, because short macros should be reserved for applications, but since it's always a good idea to choose prefixed macro names, even for applications, we are going to do that in MPD.
-
- 13 Oct, 2008 3 commits
-
-
Max Kellermann authored
directory_get_name() returns the base name of the directory.
-
Max Kellermann authored
The inline functions directory_is_empty() and directory_get_path() don't modify the object - pass constant object pointers to them.
-
Eric Wong authored
This way we avoid unnecessary heap allocations.
-
- 09 Oct, 2008 3 commits
-
-
Max Kellermann authored
Some tiny utilities... wrappers like these may become helpful when we introduce locking.
-
Max Kellermann authored
No idea why it was created in directory.h, but it should be in dirvec.h.
-
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.
-
- 08 Oct, 2008 11 commits
-
-
Max Kellermann authored
ino_t and dev_t are declared in sys/types.h, not sys/stat.h.
-
Max Kellermann authored
For the root directory, let's set path to an empty string. This saves a few checks.
-
Max Kellermann authored
Also convert directory_get_path() to an inline function, which returns a constant string.
-
Max Kellermann authored
CamelCase is ugly, rename the functions.
-
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.
-
Max Kellermann authored
The function isRootDirectory() is tiny and can be converted to an inline function. Don't allow name==NULL.
-
Max Kellermann authored
When there are standardized headers, use these instead of the bloated os_compat.h.
-
Max Kellermann authored
Again, a data type which can be forward-declared.
-
Max Kellermann authored
The struct can be forward-declared by other headers, which relaxes the header dependencies.
-
Max Kellermann authored
directory_is_empty() is a tiny inline function which determine if a directory has any child objects (sub directories or songs).
-
Max Kellermann authored
The source directory.c mixes several libraries: directory object management, database management and database update, resulting in a 1000+ line monster. Move the whole database update code to update.c.
-
- 06 Oct, 2008 1 commit
-
-
Eric Wong authored
Now the "update" command can be issued multiple times regardless of whether the client is in list mode or not. We serialize the update tasks to prevent updates from trampling over each other and will spawn another update task once the current one is finished updating and reaped. Right now we cap the queue size to 32 which is probably enough (I bet most people usually run update with no argument anyways); but we can make it grow/shrink dynamically if needed. There'll still be a hard-coded limit to prevent DoS attacks, though.
-
- 29 Sep, 2008 3 commits
-
-
Eric Wong authored
MPD has supported more audio formats than just MP3 for over five years...
-
Eric Wong authored
We no longer fork for directory updates, so we no longer have children to reap.
-
Eric Wong authored
Small memory reduction compared to songvec since most users have much fewer dirs than songs, but still nice to have.
-