aboutsummaryrefslogtreecommitdiffstats
path: root/src/database.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* update: don't export updateDirectory()Max Kellermann2008-10-091-1/+13
| | | | | | | | If the user requests database update during startup, call directory_update_init(). This should be changed to fully asynchronous update later. For this to work, main_notify has to be initialized before db_init().
* database: renamed get_get_song() to db_get_song()Max Kellermann2008-10-091-2/+2
| | | | Search'n'replace typo..
* diretory: moved code to directory_save.c, directory_print.cMax Kellermann2008-10-091-0/+1
| | | | | | Remove clutter from directory.c. Everything which saves or loads to/from the hard disk goes to directory_save.c, and code which sends directory information to the client is moved into directory_print.c.
* database: removed local variable bufferSizeMax Kellermann2008-10-091-3/+2
| | | | Use sizeof(buffer) instead.
* database: simplify db_load()Max Kellermann2008-10-091-47/+42
| | | | Removed a superfluous closure.
* directory: path must not be NULLMax Kellermann2008-10-081-2/+2
| | | | | For the root directory, let's set path to an empty string. This saves a few checks.
* directory: eliminate CamelCaseMax Kellermann2008-10-081-10/+9
| | | | CamelCase is ugly, rename the functions.
* database: renamed functions, "db_" prefix and no CamelCaseMax Kellermann2008-10-081-19/+26
| | | | Yet another CamelCase removal patch.
* database: removed printDirectoryInfo()Max Kellermann2008-10-081-10/+0
| | | | The same can be achieved with directory_print(db_get_directory()).
* directory: moved code to database.cMax Kellermann2008-10-081-0/+324
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.