aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/plugins/simple/SimpleDatabasePlugin.cxx (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-12-26db/simple: fix implicit nullptr/bool conversionMax Kellermann1-3/+3
Return false on error, not nullptr.
2014-12-26fs/Traits, ...: work around -Wtautological-pointer-compareMax Kellermann1-1/+4
New in clang 3.6.
2014-08-30db/simple: fix build failure without zlibMax Kellermann1-1/+4
2014-08-11db/simple: check for I/O errors in Load()Max Kellermann1-1/+1
2014-08-11db/simple: compress the database file using gzipMax Kellermann1-4/+54
2014-08-07fs/io/BufferedReader: new class to replace class TextFileMax Kellermann1-5/+2
The new class is pluggable, to prepare for gzipped database files. For now, the TextFile class remains, and will be refactored away later.
2014-08-07fs/output, fs/TextFile: move to fs/io/Max Kellermann1-3/+3
2014-07-30*Save, *State: use the OutputStream API instead of FILE*Max Kellermann1-12/+8
2014-04-25db/Helpers: split libraryMax Kellermann1-0/+1
2014-04-24DatabaseCommands: "list" allows groupingMax Kellermann1-3/+4
2014-02-27db/simple: mount pointsMax Kellermann1-4/+143
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-26db/simple/Directory: eliminate method LookupSong()Max Kellermann1-1/+19
Move to SimpleDatabase::GetSong() to give that method more control.
2014-02-26db/simple/Directory: LookupDirectory() return remaining URIMax Kellermann1-13/+18
Code can now be reused in LookupSong().
2014-02-26db/simple: create dedicated directoryMax Kellermann1-3/+3
2014-02-25db/simple: remove unused method LookupDirectory()Max Kellermann1-11/+0
2014-02-19DatabasePlugin: add FLAG_REQUIRE_STORAGEMax Kellermann1-1/+1
Ignore the storage configuration if FLAG_REQUIRE_STORAGE is not set in the DatabasePlugin.
2014-02-19DatabasePlugin: add attribute "flags"Max Kellermann1-0/+1
2014-02-19db/Interface: add attribute "plugin"Max Kellermann1-0/+4
The new method IsPlugin() replaces the "is_simple" flag.
2014-02-19DatabasePlugin: split headerMax Kellermann1-0/+1
2014-01-24Database*: move to db/Max Kellermann1-8/+8
2014-01-24Config*: move to config/Max Kellermann1-1/+1
2014-01-22LightDirectory: new struct replacing Directory in the DB APIMax Kellermann1-1/+2
2014-01-19LightSong: new class to be used by DatabasePlugin callbacksMax Kellermann1-11/+19
Detach the Song class completely from the public API, only to be used by SimpleDatabase and the update thread.
2014-01-19db/simple: make borrowed_song_count "mutable"Max Kellermann1-2/+2
Simpler to use than const_cast.
2014-01-13copyright year 2014Max Kellermann1-1/+1
2014-01-11DatabasePlugin: add interface DatabaseListenerMax Kellermann1-1/+3
Allow database plugins to announce that they have been modified.
2014-01-09Directory: remove method Free()Max Kellermann1-2/+2
2013-12-08TextFile: move to fs subsystemDenis Krjuchkov1-1/+1
2013-12-05db/SimpleDatabasePlugin.cxx: don't use CheckAccess with mode on WindowsDenis Krjuchkov1-2/+5
2013-11-28include cleanup using iwyuMax Kellermann1-1/+0
2013-10-30*: update copyright year to 2013Max Kellermann1-1/+1
2013-10-29DatabaseSelection: use std::stringMax Kellermann1-2/+2
2013-10-20TagType: rename enum tag_type to TagTypeMax Kellermann1-1/+1
2013-10-19*: use references instead of pointersMax Kellermann1-2/+2
2013-10-19*: use nullptr instead of NULLMax Kellermann1-8/+8
2013-10-17fs/Path: rename to AllocatedPathMax Kellermann1-1/+1
The new class Path only holds a string pointer without being responsible for allocation/deallocation. The FileSystem.hxx library accepts Path arguments instead of AllocatedPath, to avoid forcing callers to allocate another string object.
2013-10-15Client, ...: remove unnecessary glib.h includeMax Kellermann1-2/+0
2013-10-02Log: new logging library APIMax Kellermann1-4/+5
Prepare to migrate away from GLib. Currently, we're still using GLib as a backend.
2013-10-02filesystem/Path: use std::stringMax Kellermann1-2/+1
2013-10-02Listen, ...: add missing includesMax Kellermann1-0/+2
2013-09-05conf.h: remove obsolete headerMax Kellermann1-1/+1
Use only ConfigData.hxx in plugin sources to reduce header dependencies.
2013-09-04util/Error: new error passing libraryMax Kellermann1-70/+53
Replaces GLib's GError.
2013-08-10db_error: convert to C++Max Kellermann1-1/+1
2013-08-07ConfigPath: return a Path objectMax Kellermann1-12/+3
Migrate all callers to use Path directly, instead of doing the conversion in each caller.
2013-08-04*: use gcc.h macros instead of GLibMax Kellermann1-2/+2
2013-08-04DatabasePlugin: pass config_param referenceMax Kellermann1-3/+3
2013-07-28song: convert header to C++Max Kellermann1-4/+4
2013-02-02SimpleDatabasePlugin: use file system API, log in UTF-8Denis Krjuchkov1-25/+23
2013-01-28Path::FromUTF8() returns nulled instance on error, add error handling where ↵Denis Krjuchkov1-0/+6
required
2013-01-18Path: new class "Path" wraps filesystem path stringsMax Kellermann1-2/+3