aboutsummaryrefslogtreecommitdiffstats
path: root/src/database.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* diretory: moved code to directory_save.c, directory_print.cMax Kellermann2008-10-111-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-111-3/+2
| | | | Use sizeof(buffer) instead.
* database: simplify db_load()Max Kellermann2008-10-111-47/+42
| | | | Removed a superfluous closure.
* directory: path must not be NULLMax Kellermann2008-10-111-2/+2
| | | | | For the root directory, let's set path to an empty string. This saves a few checks.
* directory: eliminate CamelCaseMax Kellermann2008-10-111-9/+9
| | | | | | | | CamelCase is ugly, rename the functions. [ew: "directory_get_directory" was too confusing, using "directory_get_subdir" instead (old function was named "getSubDirectory")]
* database: renamed functions, "db_" prefix and no CamelCaseMax Kellermann2008-10-111-17/+17
| | | | Yet another CamelCase removal patch.
* database: removed printDirectoryInfo()Max Kellermann2008-10-111-9/+0
| | | | The same can be achieved with directory_print(db_get_directory()).
* directory: moved code to database.cMax Kellermann2008-10-111-0/+321
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.