2 * onak-conf.h - Routines related to runtime config.
4 * Jonathan McDowell <noodles@earth.li>
6 * Copyright 2002 Project Purple
10 #define __ONAK_CONF_H_
13 * struct onak_config - Runtime configuration for onak.
14 * @maxkeys: The maximum number of keys a query should return.
15 * @thissite: Our email address that servers sync with.
16 * @adminemail: The email address of the server admin.
17 * @mta: The mta to invoke to send sync mails.
18 * @syncsites: A linked list of sites we sync with.
20 * @db_dir: The path to the directory containing the database files.
22 * @pg_dbhost: The host that Postgres is running on.
23 * @pg_dbname: The database name.
24 * @pg_dbuser: The user we should connect as.
25 * @pg_dbpass: The password for the user.
27 * This structure holds various runtime configuration options for onak. It
28 * will eventually be populated from the config file.
42 * Options for any database backend that needs a directory, be it the
43 * file, db2 or db3 options.
48 * Options for the Postgres backend.
57 * config - The variable containing our runtime config.
59 extern struct onak_config config;
62 * readconfig - read the onak config.
63 * @configfile - the config file to read.
65 * Read in our config file. If config file is NULL read in the compile
68 void readconfig(const char *configfile);
71 * cleanupconfig - clean up the config when we're shutting down.
73 void cleanupconfig(void);
75 #endif /* __ONAK_CONF_H_ */