Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2014-06-16 | Directory: eliminate attribute "have_stat" | Max Kellermann | 1 | -1/+0 | |
Check for 0 in "device" and "inode" instead. | |||||
2014-06-16 | db/simple: use class boost::intrusive::list | Max Kellermann | 1 | -19/+41 | |
Remove the C list_head library and use type-safe C++ instead. | |||||
2014-02-27 | db/simple: mount points | Max Kellermann | 1 | -0/+11 | |
A SimpleDatabase instance can now "mount" other Database instances at certain locations. This is used to use a new SimpleDatabase instance for each storage mount (issued with the "mount" protocol command). Each such instance has its own database file, stored in the directory that is specified with the "cache_directory" option. | |||||
2014-02-26 | db/simple/Directory: eliminate method LookupSong() | Max Kellermann | 1 | -11/+0 | |
Move to SimpleDatabase::GetSong() to give that method more control. | |||||
2014-02-26 | db/simple/Directory: LookupDirectory() return remaining URI | Max Kellermann | 1 | -1/+16 | |
Code can now be reused in LookupSong(). | |||||
2014-02-26 | db/Directory: add DEVICE_* documentation | Max Kellermann | 1 | -0/+10 | |
2014-02-26 | db/simple: create dedicated directory | Max Kellermann | 1 | -1/+1 | |
2014-02-23 | Directory: pass std::string&& to constructor | Max Kellermann | 1 | -2/+2 | |
2014-02-21 | db/Directory: use "unsigned" for inode and device | Max Kellermann | 1 | -6/+3 | |
This is what we get from the storage plugin via FileInfo. Fixes a compiler warning on Mac OS X where dev_t appears to be signed. | |||||
2014-01-29 | db/Directory: move isRootDirectory() to Uri.hxx | Max Kellermann | 1 | -6/+0 | |
Decouple command/OtherCommands.cxx from the "simple" database plugin. | |||||
2014-01-24 | Database*: move to db/ | Max Kellermann | 1 | -1/+1 | |
2014-01-22 | LightDirectory: new struct replacing Directory in the DB API | Max Kellermann | 1 | -0/+3 | |
2014-01-13 | copyright year 2014 | Max Kellermann | 1 | -1/+1 | |
2014-01-09 | Directory: remove method Free() | Max Kellermann | 1 | -8/+0 | |
2014-01-09 | Directory: convert to fixed-size struct | Max Kellermann | 1 | -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-09 | DetachedSong: fork of struct Song | Max Kellermann | 1 | -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-07 | Directory: make some code generic, move to VarSize.hxx | Max Kellermann | 1 | -0/+4 | |
2013-10-19 | *: use references instead of pointers | Max Kellermann | 1 | -4/+4 | |
2013-10-19 | *: use nullptr instead of NULL | Max Kellermann | 1 | -3/+3 | |
2013-10-15 | gcc.h: rename to Compiler.h | Max Kellermann | 1 | -1/+1 | |
2013-09-04 | util/Error: new error passing library | Max Kellermann | 1 | -2/+2 | |
Replaces GLib's GError. | |||||
2013-07-30 | include cleanup | Max Kellermann | 1 | -1/+0 | |
2013-07-28 | song: convert header to C++ | Max Kellermann | 1 | -7/+7 | |
2013-01-30 | TagPool, ...: include cleanup | Max Kellermann | 1 | -1/+1 | |
2013-01-03 | PlaylistVector: use std::list | Max Kellermann | 1 | -8/+3 | |
2013-01-03 | Directory: initialise in default constructor | Max Kellermann | 1 | -1/+1 | |
2013-01-03 | Directory: add constructor and destructor | Max Kellermann | 1 | -0/+13 | |
2013-01-03 | Directory: rename struct directory to Directory | Max Kellermann | 1 | -20/+20 | |
2013-01-02 | Directory: turn functions to methods | Max Kellermann | 1 | -150/+141 | |
2013-01-02 | Directory: make the header C++ only | Max Kellermann | 1 | -15/+3 | |
2012-08-29 | SongFilter: convert to a C++ class | Max Kellermann | 1 | -2/+5 | |
2012-08-08 | directory: use gcc.h macros, not GLib | Max Kellermann | 1 | -6/+7 | |
2012-08-08 | DatabaseSelection: add "match" attribute | Max Kellermann | 1 | -1/+2 | |
Let the database plugin do the match. | |||||
2012-08-01 | db_plugin: convert to C++ | Max Kellermann | 1 | -7/+17 | |
2012-02-13 | directory.h: move DIRECTORY_DIR to directory_save.c | Max Kellermann | 1 | -2/+0 | |
2012-02-12 | playlist_vector: use the list_head library | Max Kellermann | 1 | -3/+8 | |
2012-02-02 | directory: require the caller to lock the db_mutex | Max Kellermann | 1 | -0/+21 | |
Reduce the number of lock/unlock cycles, and make database handling safer. | |||||
2012-01-24 | directory: replace songvec with doubly linked list | Max Kellermann | 1 | -3/+15 | |
2012-01-24 | directory: add function directory_get_song(), ... | Max Kellermann | 1 | -0/+22 | |
Wrap songvec_find() and other songvec methods. | |||||
2012-01-24 | directory: replace dirvec with doubly linked list | Max Kellermann | 1 | -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-24 | directory: simplify constructors and clarify API documentation | Max Kellermann | 1 | -4/+45 | |
Pass only the "name" to a directory, instead of the full (relative) path. | |||||
2011-11-27 | directory: rename attribute "stat" to "have_stat" | Max Kellermann | 1 | -1/+1 | |
"stat" is a macro on mingw32, which is a pretty stupid thing, and this commit works around this build failure. | |||||
2011-11-27 | directory: convert "stat" to a bool | Max Kellermann | 1 | -1/+1 | |
2011-09-13 | db_plugin: add method visit() | Max Kellermann | 1 | -1/+1 | |
2011-09-13 | database: add struct db_visitor | Max Kellermann | 1 | -4/+6 | |
Use this struct for db_walk(). | |||||
2011-05-09 | directory: allow directories with just playlists | Max Kellermann | 1 | -1/+2 | |
Keep those when scanning for empty directories. The check in playlist_vector_is_empty() was missing. | |||||
2011-01-29 | copyright year 2011 | Max Kellermann | 1 | -1/+1 | |
2010-12-21 | directory: fix warning "comparison between signed and unsigned" | Max Kellermann | 1 | -2/+2 | |
Cast the constant to dev_t, not to unsigned. | |||||
2010-09-23 | directory: cast DEVICE_INARCHIVE, DEVICE_CONTAINER to dev_t | Max Kellermann | 1 | -2/+2 | |
Fix gcc warning. | |||||
2010-07-21 | update: store playlist files in database | Max Kellermann | 1 | -0/+4 | |
Don't open the music directory for each "lsinfo" call. Get the list of playlist files from the memory database. |