aboutsummaryrefslogtreecommitdiffstats
path: root/src/database.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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.