Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2012-08-22 | Database*: fix nullptr dereference when no database is configured | Max Kellermann | 1 | -0/+12 | |
2012-08-16 | DatabasePlugin: add method ReturnSong() | Max Kellermann | 1 | -0/+9 | |
Allow the plugin to allocate the GetSong() return value. | |||||
2012-08-15 | db_visitor: delete obsolete header | Max Kellermann | 1 | -1/+0 | |
2012-08-08 | DatabaseGlue: look up the database plugin | Max Kellermann | 1 | -1/+11 | |
No more hard-coded "simple" plugin. | |||||
2012-08-08 | DatabaseGlue: pass block to db_init() | Max Kellermann | 1 | -10/+1 | |
Let the caller take care for legacy conversion. | |||||
2012-08-08 | DatabaseGlue: add function db_is_simple() | Max Kellermann | 1 | -0/+11 | |
Preparing for non-"simple" database plugins. | |||||
2012-08-07 | db_selection: rename to DatabaseSelection | Max Kellermann | 1 | -1/+0 | |
2012-08-02 | DatabaseGlue: remove db_walk(), db_visit() | Max Kellermann | 1 | -49/+0 | |
Unused. | |||||
2012-08-02 | DatabaseGlue: add function GetDatabase() | Max Kellermann | 1 | -0/+9 | |
Allow using the object outside of DatabaseGlue.cxx. | |||||
2012-08-01 | db_plugin: convert to C++ | Max Kellermann | 1 | -13/+42 | |
2012-02-02 | directory: require the caller to lock the db_mutex | Max Kellermann | 1 | -1/+3 | |
Reduce the number of lock/unlock cycles, and make database handling safer. | |||||
2011-09-13 | db_plugin: add method visit() | Max Kellermann | 1 | -18/+14 | |
2011-09-13 | db_plugin: add method get_song() | Max Kellermann | 1 | -2/+1 | |
New db_get_song() implementation. | |||||
2011-09-13 | database: generate GError when database is disabled | Max Kellermann | 1 | -5/+8 | |
2011-09-13 | directory: don't visit "self" in _walk() | Max Kellermann | 1 | -0/+4 | |
Let the caller decide if the current directory should be visited. | |||||
2011-09-13 | database: add struct db_visitor | Max Kellermann | 1 | -19/+15 | |
Use this struct for db_walk(). | |||||
2011-09-10 | db_plugin: introducing a plugin API for the song database | Max Kellermann | 1 | -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-10 | database: move code to db_save.c | Max Kellermann | 1 | -128/+3 | |
2011-09-09 | database: return GError on failure | Max Kellermann | 1 | -17/+28 | |
2011-07-18 | database: require X_OK on parent directory, not R_OK | Max Kellermann | 1 | -1/+1 | |
For accessing the child of a directory, one needs X_OK on the directory. | |||||
2011-01-29 | copyright year 2011 | Max Kellermann | 1 | -1/+1 | |
2010-07-25 | database, ...: remove EINTR checks after stdio calls | Max Kellermann | 1 | -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-21 | database: remove outdated comment | Max Kellermann | 1 | -1/+0 | |
2009-12-31 | Update copyright notices. | Avuton Olrich | 1 | -1/+1 | |
2009-11-12 | include config.h in all sources | Max Kellermann | 1 | -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-07 | database: I/O error handling in db_save() | Max Kellermann | 1 | -1/+3 | |
Check ferror() instead of the fprintf() return value. | |||||
2009-11-04 | database: rescan after metadata_to_use change | Max Kellermann | 1 | -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-01 | song_save: load one song at a time | Max Kellermann | 1 | -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-01 | database: save database format version | Max Kellermann | 1 | -1/+17 | |
2009-11-01 | database: use strcmp() instead of g_str_has_prefix() | Max Kellermann | 1 | -1/+1 | |
2009-11-01 | database: removed redundant music_root allocation | Max Kellermann | 1 | -2/+0 | |
The "music_root" global variable is allocated by db_init(). | |||||
2009-11-01 | text_file: allocate line buffers dynamically | Max Kellermann | 1 | -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. | |||||
2009-06-30 | database: fixed NULL pointer dereference after charset change | Max Kellermann | 1 | -4/+5 | |
When the filesystem_charset is changed in mpd.conf, MPD should discard the old database. In this error branch, MPD did not fill the GError object properly, and logged a warning message instead, which caused a segmentation fault. | |||||
2009-04-01 | directory: added directory_lookup_song() | Max Kellermann | 1 | -25/+1 | |
Moved code from db_get_song(). | |||||
2009-04-01 | directory: renamed directory_get_directory() | Max Kellermann | 1 | -1/+1 | |
Renamed directory_get_directory() to directory_lookup_directory(). Added API documentation. | |||||
2009-03-13 | all: Update copyright header. | Avuton Olrich | 1 | -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. | |||||
2009-03-02 | directory: directory_load() returns GError | Max Kellermann | 1 | -1/+5 | |
Do error reporting with GLib's GError library in this library, too. | |||||
2009-03-02 | database: db_load() returns GError | Max Kellermann | 1 | -15/+40 | |
Do error reporting with GLib's GError library. | |||||
2009-03-02 | database: no CamelCase | Max Kellermann | 1 | -16/+15 | |
Renamed a bunch of variables. | |||||
2009-02-27 | directory: moved DIRECTORY_* string constants | Max Kellermann | 1 | -0/+5 | |
Moved some of them to to directory_save.c, and others to database.c. | |||||
2009-02-12 | database: don't load database after charset was reconfigured | Max Kellermann | 1 | -6/+4 | |
When you change the filesystem charset, discard the old database file and create a new one. The old database file will most likely contain stale or invalid information. | |||||
2009-01-25 | database: eliminate "goto" usage | Max Kellermann | 1 | -7/+8 | |
http://xkcd.com/292/ | |||||
2009-01-25 | use g_free() instead of free() | Max Kellermann | 1 | -1/+1 | |
On some platforms, g_free() must be used for memory allocated by GLib. This patch intends to correct a lot of occurrences, but is probably not complete. | |||||
2009-01-18 | mapper: make the music_directory optional | Max Kellermann | 1 | -5/+23 | |
Without a music_directory, MPD is an excellent streaming client. | |||||
2009-01-18 | database: pass database file name to db_init() | Max Kellermann | 1 | -32/+36 | |
Don't include conf.h in database.c. | |||||
2009-01-17 | conf: replaced getConfigParamValue() with config_get_string() | Max Kellermann | 1 | -2/+3 | |
Don't return a writable pointer. | |||||
2009-01-17 | conf: no CamelCase, part I | Max Kellermann | 1 | -1/+1 | |
Renamed functions, types, variables. | |||||
2009-01-04 | database: use stdbool | Max Kellermann | 1 | -21/+20 | |
Make db_load(), db_save() and db_check() return bool instead of int. | |||||
2009-01-04 | database: db_init() initializes library, does not update | Max Kellermann | 1 | -8/+2 | |
For updating the database, directory_update_init() should be called explicitly. | |||||
2009-01-04 | stats: added stats_update() | Max Kellermann | 1 | -4/+1 | |