aboutsummaryrefslogtreecommitdiffstats
path: root/src/database.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* db_plugin: add method visit()Max Kellermann2011-09-131-0/+7
|
* database: don't allow uri==NULLMax Kellermann2011-09-131-0/+5
| | | | Add nonnull attributes and fix all callers.
* database: add struct db_visitorMax Kellermann2011-09-131-3/+5
| | | | Use this struct for db_walk().
* db_plugin: introducing a plugin API for the song databaseMax Kellermann2011-09-101-8/+3
| | | | | | | | | | | 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.
* database: return GError on failureMax Kellermann2011-09-091-2/+2
|
* copyright year 2011Max Kellermann2011-01-291-1/+1
|
* Update copyright notices.Avuton Olrich2009-12-311-1/+1
|
* all: Update copyright header.Avuton Olrich2009-03-131-7/+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.
* database: db_load() returns GErrorMax Kellermann2009-03-021-1/+3
| | | | Do error reporting with GLib's GError library.
* mapper: make the music_directory optionalMax Kellermann2009-01-181-0/+4
| | | | Without a music_directory, MPD is an excellent streaming client.
* database: pass database file name to db_init()Max Kellermann2009-01-181-7/+5
| | | | Don't include conf.h in database.c.
* update: save the database even if it is emptyMax Kellermann2009-01-081-0/+11
| | | | Save an empty database, even if the music directory is empty.
* database: use stdboolMax Kellermann2009-01-041-3/+4
| | | | Make db_load(), db_save() and db_check() return bool instead of int.
* database: db_init() initializes library, does not updateMax Kellermann2009-01-041-0/+13
| | | | | For updating the database, directory_update_init() should be called explicitly.
* added prefix to header macrosMax Kellermann2008-10-311-2/+2
| | | | | | | "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.
* database: renamed get_get_song() to db_get_song()Max Kellermann2008-10-091-1/+1
| | | | Search'n'replace typo..
* database: renamed functions, "db_" prefix and no CamelCaseMax Kellermann2008-10-081-12/+18
| | | | Yet another CamelCase removal patch.
* database: removed printDirectoryInfo()Max Kellermann2008-10-081-3/+0
| | | | The same can be achieved with directory_print(db_get_directory()).
* directory: moved code to database.cMax Kellermann2008-10-081-0/+55
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.