X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/4b8483ae278577a3adc8d84da81d77019704466f..8e58a1769ce5e492dd68904dfc81b6e077fc2a3a:/onak_conf.c diff --git a/onak_conf.c b/onak_conf.c new file mode 100644 index 0000000..a72d31d --- /dev/null +++ b/onak_conf.c @@ -0,0 +1,39 @@ +/* + * onak_conf.c - Routines related to runtime config. + * + * Jonathan McDowell + * + * Copyright 2002 Project Purple + */ + +#include + +#include "onak_conf.h" + +/* + * config - Runtime configuration for onak. + * + * Currently this is all hardcoded, but only needs changed here. In future + * it'll be read from a config file. + */ +struct onak_config config = { + 128, /* maxkeys */ + + /* + * Options for the db2 file backend. + */ + NULL, /* db2_dbpath */ + + /* + * Options for the file backend. + */ + NULL, /* file_dbpath */ + + /* + * Options for the Postgres backend. + */ + NULL, /* pg_dbhost */ + NULL, /* pg_dbname */ + "noodles", /* pg_dbuser */ + NULL, /* pg_dbpass */ +};