2 * onak-conf.h - Routines related to runtime config.
4 * Jonathan McDowell <noodles@earth.li>
6 * Copyright 2002 Project Purple
8 * $Id: onak-conf.h,v 1.11 2003/10/11 22:28:23 noodles Exp $
11 #ifndef __ONAK_CONF_H_
12 #define __ONAK_CONF_H_
14 #define VERSION "0.2.1"
15 #define CONFIGFILE "/home/noodles/projects/onak/onak.conf"
18 * struct onak_config - Runtime configuration for onak.
19 * @maxkeys: The maximum number of keys a query should return.
20 * @thissite: Our email address that servers sync with.
21 * @adminemail: The email address of the server admin.
22 * @mta: The mta to invoke to send sync mails.
23 * @syncsites: A linked list of sites we sync with.
25 * @db_dir: The path to the directory containing the database files.
27 * @pg_dbhost: The host that Postgres is running on.
28 * @pg_dbname: The database name.
29 * @pg_dbuser: The user we should connect as.
30 * @pg_dbpass: The password for the user.
32 * This structure holds various runtime configuration options for onak. It
33 * will eventually be populated from the config file.
47 * Options for any database backend that needs a directory, be it the
48 * file, db2 or db3 options.
53 * Options for the Postgres backend.
62 * config - The variable containing our runtime config.
64 extern struct onak_config config;
67 * readconfig - read the onak config.
69 void readconfig(void);
72 * cleanupconfig - clean up the config when we're shutting down.
74 void cleanupconfig(void);
76 #endif /* __ONAK_CONF_H_ */