aboutsummaryrefslogtreecommitdiffstats
path: root/src/Directory.hxx (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-01-24Database*: move to db/Max Kellermann1-248/+0
2014-01-22LightDirectory: new struct replacing Directory in the DB APIMax Kellermann1-0/+3
2014-01-13copyright year 2014Max Kellermann1-1/+1
2014-01-09Directory: remove method Free()Max Kellermann1-8/+0
2014-01-09Directory: convert to fixed-size structMax Kellermann1-19/+9
Using a variable-size struct with embedded string is not worth the trouble here. There are not so many Directory objects.
2014-01-09DetachedSong: fork of struct SongMax Kellermann1-4/+0
From now on, struct Song will be used by the database only, and DetachedSong will be used by everybody else. DetachedSong is easier to use, but Song has lower overhead.
2014-01-07Directory: make some code generic, move to VarSize.hxxMax Kellermann1-0/+4
2013-10-19*: use references instead of pointersMax Kellermann1-4/+4
2013-10-19*: use nullptr instead of NULLMax Kellermann1-3/+3
2013-10-15gcc.h: rename to Compiler.hMax Kellermann1-1/+1
2013-09-04util/Error: new error passing libraryMax Kellermann1-2/+2
Replaces GLib's GError.
2013-07-30include cleanupMax Kellermann1-1/+0
2013-07-28song: convert header to C++Max Kellermann1-7/+7
2013-01-30TagPool, ...: include cleanupMax Kellermann1-1/+1
2013-01-03PlaylistVector: use std::listMax Kellermann1-8/+3
2013-01-03Directory: initialise in default constructorMax Kellermann1-1/+1
2013-01-03Directory: add constructor and destructorMax Kellermann1-0/+13
2013-01-03Directory: rename struct directory to DirectoryMax Kellermann1-20/+20
2013-01-02Directory: turn functions to methodsMax Kellermann1-150/+141
2013-01-02Directory: make the header C++ onlyMax Kellermann1-15/+3
2012-08-29SongFilter: convert to a C++ classMax Kellermann1-2/+5
2012-08-08directory: use gcc.h macros, not GLibMax Kellermann1-6/+7
2012-08-08DatabaseSelection: add "match" attributeMax Kellermann1-1/+2
Let the database plugin do the match.
2012-08-01db_plugin: convert to C++Max Kellermann1-7/+17
2012-02-13directory.h: move DIRECTORY_DIR to directory_save.cMax Kellermann1-2/+0
2012-02-12playlist_vector: use the list_head libraryMax Kellermann1-3/+8
2012-02-02directory: require the caller to lock the db_mutexMax Kellermann1-0/+21
Reduce the number of lock/unlock cycles, and make database handling safer.
2012-01-24directory: replace songvec with doubly linked listMax Kellermann1-3/+15
2012-01-24directory: add function directory_get_song(), ...Max Kellermann1-0/+22
Wrap songvec_find() and other songvec methods.
2012-01-24directory: replace dirvec with doubly linked listMax Kellermann1-8/+33
Random access is not needed, and a linked list is easier to manage: we don't need to (re-)allocate the pointer array.
2012-01-24directory: simplify constructors and clarify API documentationMax Kellermann1-4/+45
Pass only the "name" to a directory, instead of the full (relative) path.
2011-11-27directory: rename attribute "stat" to "have_stat"Max Kellermann1-1/+1
"stat" is a macro on mingw32, which is a pretty stupid thing, and this commit works around this build failure.
2011-11-27directory: convert "stat" to a boolMax Kellermann1-1/+1
2011-09-13db_plugin: add method visit()Max Kellermann1-1/+1
2011-09-13database: add struct db_visitorMax Kellermann1-4/+6
Use this struct for db_walk().
2011-05-09directory: allow directories with just playlistsMax Kellermann1-1/+2
Keep those when scanning for empty directories. The check in playlist_vector_is_empty() was missing.
2011-01-29copyright year 2011Max Kellermann1-1/+1
2010-12-21directory: fix warning "comparison between signed and unsigned"Max Kellermann1-2/+2
Cast the constant to dev_t, not to unsigned.
2010-09-23directory: cast DEVICE_INARCHIVE, DEVICE_CONTAINER to dev_tMax Kellermann1-2/+2
Fix gcc warning.
2010-07-21update: store playlist files in databaseMax Kellermann1-0/+4
Don't open the music directory for each "lsinfo" call. Get the list of playlist files from the memory database.
2009-12-31Update copyright notices.Avuton Olrich1-1/+1
2009-11-12include config.h in all sourcesMax Kellermann1-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-11directory: include config.hMax Kellermann1-0/+1
*sigh* another Large File breakage. ino_t/dev_t this time. We need to include config.h in directory.h to get this straight.
2009-04-01directory: added directory_lookup_song()Max Kellermann1-0/+10
Moved code from db_get_song().
2009-04-01directory: renamed directory_get_directory()Max Kellermann1-1/+8
Renamed directory_get_directory() to directory_lookup_directory(). Added API documentation.
2009-03-13all: Update copyright header.Avuton Olrich1-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-03-09decoder_plugin: added method container_scan()Jochen Keil1-0/+1
[mk: fixed whitespace errors; use delete_song() instead of songvec_delete()]
2009-02-28directory: added "mtime" propertyMax Kellermann1-0/+1
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.
2009-02-27directory: moved DIRECTORY_* string constantsMax Kellermann1-7/+0
Moved some of them to to directory_save.c, and others to database.c.
2009-01-04directory: added directory_is_root()Max Kellermann1-0/+9
directory_is_root() is cheaper than isRootDirectory(directory_get_path()).