aboutsummaryrefslogtreecommitdiffstats
path: root/src/DatabaseGlue.cxx (unfollow)
Commit message (Collapse)AuthorFilesLines
2013-10-19*: use nullptr instead of NULLMax Kellermann1-13/+13
2013-10-15Client, ...: remove unnecessary glib.h includeMax Kellermann1-2/+0
2013-10-02Stats: rename stats.h to Stats.hxxMax Kellermann1-5/+2
2013-10-02Log: new logging library APIMax Kellermann1-3/+0
Prepare to migrate away from GLib. Currently, we're still using GLib as a backend.
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-10/+10
Replaces GLib's GError.
2013-08-10db_error: convert to C++Max Kellermann1-1/+1
2013-08-04DatabasePlugin: pass config_param referenceMax Kellermann1-2/+2
2013-01-29require GLib 2.24Max Kellermann1-1/+0
2013-01-07decoder_api.h, ...: add "extern C"Max Kellermann1-1/+1
2013-01-03Directory: rename struct directory to DirectoryMax Kellermann1-3/+3
2013-01-03database.h: rename to DatabaseSimple.hxxMax Kellermann1-1/+1
2013-01-03database.h: move prototypes to DatabaseGlue.hxxMax Kellermann1-3/+3
2013-01-03database.h: eliminate db_*_song()Max Kellermann1-22/+0
Use the C++ API.
2013-01-02Directory: turn functions to methodsMax Kellermann1-3/+1
2013-01-02Directory: make the header C++ onlyMax Kellermann1-2/+1
2013-01-02db_save, state_file: convert to C++Max Kellermann1-1/+1
2013-01-02configure.ac: disable C++ RTTIMax Kellermann1-1/+4
RTTI adds overhead to the binary, and we don't need that.
2012-08-22Database*: fix nullptr dereference when no database is configuredMax Kellermann1-0/+12
2012-08-16DatabasePlugin: add method ReturnSong()Max Kellermann1-0/+9
Allow the plugin to allocate the GetSong() return value.
2012-08-15db_visitor: delete obsolete headerMax Kellermann1-1/+0
2012-08-08DatabaseGlue: look up the database pluginMax Kellermann1-1/+11
No more hard-coded "simple" plugin.
2012-08-08DatabaseGlue: pass block to db_init()Max Kellermann1-10/+1
Let the caller take care for legacy conversion.
2012-08-08DatabaseGlue: add function db_is_simple()Max Kellermann1-0/+11
Preparing for non-"simple" database plugins.
2012-08-07db_selection: rename to DatabaseSelectionMax Kellermann1-1/+0
2012-08-02DatabaseGlue: remove db_walk(), db_visit()Max Kellermann1-49/+0
Unused.
2012-08-02DatabaseGlue: add function GetDatabase()Max Kellermann1-0/+9
Allow using the object outside of DatabaseGlue.cxx.
2012-08-01db_plugin: convert to C++Max Kellermann1-13/+42
2012-02-02directory: require the caller to lock the db_mutexMax Kellermann1-1/+3
Reduce the number of lock/unlock cycles, and make database handling safer.
2011-09-13db_plugin: add method visit()Max Kellermann1-18/+14
2011-09-13db_plugin: add method get_song()Max Kellermann1-2/+1
New db_get_song() implementation.
2011-09-13database: generate GError when database is disabledMax Kellermann1-5/+8
2011-09-13directory: don't visit "self" in _walk()Max Kellermann1-0/+4
Let the caller decide if the current directory should be visited.
2011-09-13database: add struct db_visitorMax Kellermann1-19/+15
Use this struct for db_walk().
2011-09-10db_plugin: introducing a plugin API for the song databaseMax Kellermann1-159/+40
First draft, not really pluggable currently - hard-coded to use the "simple" plugin, and calls several of its internal functions. The API is very simple currently, all searches are still performed over the root "directory" object. Future changes to the API will move those search implementations into the plugin, to allow more efficient implementations, or implementations that don't have the whole tree in memory all the time.
2011-09-10database: move code to db_save.cMax Kellermann1-128/+3
2011-09-09database: return GError on failureMax Kellermann1-17/+28
2011-07-18database: require X_OK on parent directory, not R_OKMax Kellermann1-1/+1
For accessing the child of a directory, one needs X_OK on the directory.
2011-01-29copyright year 2011Max Kellermann1-1/+1
2010-07-25database, ...: remove EINTR checks after stdio callsMax Kellermann1-4/+4
MPD doesn't have child processes anymore, and thus we're not expecting to receive SIGCHLD very often. Since hard disk access isn't interrupted by signals anyway, we don't need those excessive checks.
2010-07-21database: remove outdated commentMax Kellermann1-1/+0
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-07database: I/O error handling in db_save()Max Kellermann1-1/+3
Check ferror() instead of the fprintf() return value.
2009-11-04database: rescan after metadata_to_use changeMax Kellermann1-0/+32
Store a list of supported tag items in the database. When loading a database which does not have a matching list, we must rescan in order to get the missing information.
2009-11-01song_save: load one song at a timeMax Kellermann1-1/+1
Changed songvec_load() to song_load(). Added start and end markers for each song. Removed the "key" line, it's redundant.
2009-11-01database: save database format versionMax Kellermann1-1/+17
2009-11-01database: use strcmp() instead of g_str_has_prefix()Max Kellermann1-1/+1
2009-11-01database: removed redundant music_root allocationMax Kellermann1-2/+0
The "music_root" global variable is allocated by db_init().
2009-11-01text_file: allocate line buffers dynamicallyMax Kellermann1-19/+19
Use a single GString buffer object in all functions loading the database. Enlarge it automatically for long lines. This eliminates the maximum line length for tag values. There is still an upper limit of 512 kB to prevent denial of service, but that's reasonable I guess.