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