summaryrefslogtreecommitdiff
path: root/src/directory.h
AgeCommit message (Collapse)Author
2013-01-02Directory: make the header C++ onlyMax Kellermann
2012-08-29SongFilter: convert to a C++ classMax Kellermann
2012-08-08directory: use gcc.h macros, not GLibMax Kellermann
2012-08-08DatabaseSelection: add "match" attributeMax Kellermann
Let the database plugin do the match.
2012-08-01db_plugin: convert to C++Max Kellermann
2012-02-13directory.h: move DIRECTORY_DIR to directory_save.cMax Kellermann
2012-02-12playlist_vector: use the list_head libraryMax Kellermann
2012-02-02directory: require the caller to lock the db_mutexMax Kellermann
Reduce the number of lock/unlock cycles, and make database handling safer.
2012-01-24directory: replace songvec with doubly linked listMax Kellermann
2012-01-24directory: add function directory_get_song(), ...Max Kellermann
Wrap songvec_find() and other songvec methods.
2012-01-24directory: replace dirvec with doubly linked listMax Kellermann
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 Kellermann
Pass only the "name" to a directory, instead of the full (relative) path.
2011-11-28Merge branch 'v0.16.x'Max Kellermann
Conflicts: Makefile.am NEWS configure.ac src/encoder/flac_encoder.c src/log.c src/pcm_buffer.c
2011-11-27directory: rename attribute "stat" to "have_stat"Max Kellermann
"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 Kellermann
2011-09-13db_plugin: add method visit()Max Kellermann
2011-09-13database: add struct db_visitorMax Kellermann
Use this struct for db_walk().
2011-06-03Merge branch 'v0.16.x'Max Kellermann
Conflicts: src/decoder/ffmpeg_decoder_plugin.c
2011-05-09directory: allow directories with just playlistsMax Kellermann
Keep those when scanning for empty directories. The check in playlist_vector_is_empty() was missing.
2011-01-29copyright year 2011Max Kellermann
2011-01-07Merge branch 'v0.15.x' into v0.16.xMax Kellermann
Conflicts: NEWS configure.ac src/directory.h
2010-12-21directory: fix warning "comparison between signed and unsigned"Max Kellermann
Cast the constant to dev_t, not to unsigned.
2010-09-23directory: cast DEVICE_INARCHIVE, DEVICE_CONTAINER to dev_tMax Kellermann
Fix gcc warning.
2010-07-21update: store playlist files in databaseMax Kellermann
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 Olrich
2009-11-12include config.h in all sourcesMax Kellermann
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 Kellermann
*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 Kellermann
Moved code from db_get_song().
2009-04-01directory: renamed directory_get_directory()Max Kellermann
Renamed directory_get_directory() to directory_lookup_directory(). Added API documentation.
2009-03-13all: Update copyright header.Avuton Olrich
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 Keil
[mk: fixed whitespace errors; use delete_song() instead of songvec_delete()]
2009-02-28directory: added "mtime" propertyMax Kellermann
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 Kellermann
Moved some of them to to directory_save.c, and others to database.c.
2009-01-04directory: added directory_is_root()Max Kellermann
directory_is_root() is cheaper than isRootDirectory(directory_get_path()).
2008-12-16song: adding support for songs in archivesViliam Mateicka
2008-10-31added prefix to header macrosMax Kellermann
"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.
2008-10-13directory: added directory_get_name()Max Kellermann
directory_get_name() returns the base name of the directory.
2008-10-13directory: pass const pointers to inline functionsMax Kellermann
The inline functions directory_is_empty() and directory_get_path() don't modify the object - pass constant object pointers to them.
2008-10-13directory: use mpd_sizeof_str_flex_array for path, tooEric Wong
This way we avoid unnecessary heap allocations.
2008-10-09directory: added inline wrappers for accessing childrenMax Kellermann
Some tiny utilities... wrappers like these may become helpful when we introduce locking.
2008-10-09directory: moved dirvec struct declaration to dirvec.hMax Kellermann
No idea why it was created in directory.h, but it should be in dirvec.h.
2008-10-09diretory: moved code to directory_save.c, directory_print.cMax Kellermann
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.
2008-10-08directory: include sys/types.hMax Kellermann
ino_t and dev_t are declared in sys/types.h, not sys/stat.h.
2008-10-08directory: path must not be NULLMax Kellermann
For the root directory, let's set path to an empty string. This saves a few checks.
2008-10-08directory: directory_get_path(NULL) is not allowedMax Kellermann
Also convert directory_get_path() to an inline function, which returns a constant string.
2008-10-08directory: eliminate CamelCaseMax Kellermann
CamelCase is ugly, rename the functions.
2008-10-08directory: moved code to database.cMax Kellermann
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.
2008-10-08directory: converted isRootDirectory() to an inline functionMax Kellermann
The function isRootDirectory() is tiny and can be converted to an inline function. Don't allow name==NULL.
2008-10-08don't include os_compat.hMax Kellermann
When there are standardized headers, use these instead of the bloated os_compat.h.
2008-10-08song: converted typedef Song to struct songMax Kellermann
Again, a data type which can be forward-declared.