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_
12 #define VERSION "0.1.2"
13 #define CONFIGFILE "/home/noodles/projects/onak/onak.conf"
16 * struct onak_config - Runtime configuration for onak.
17 * @maxkeys: The maximum number of keys a query should return.
18 * @thissite: Our email address that servers sync with.
19 * @adminemail: The email address of the server admin.
20 * @mta: The mta to invoke to send sync mails.
21 * @syncsites: A linked list of sites we sync with.
23 * @db_dir: The path to the directory containing the database files.
25 * @pg_dbhost: The host that Postgres is running on.
26 * @pg_dbname: The database name.
27 * @pg_dbuser: The user we should connect as.
28 * @pg_dbpass: The password for the user.
30 * This structure holds various runtime configuration options for onak. It
31 * will eventually be populated from the config file.
45 * Options for any database backend that needs a directory, be it the
46 * file, db2 or db3 options.
51 * Options for the Postgres backend.
60 * config - The variable containing our runtime config.
62 extern struct onak_config config;
65 * readconfig - read the onak config.
67 void readconfig(void);
70 * cleanupconfig - clean up the config when we're shutting down.
72 void cleanupconfig(void);
74 #endif /* __ONAK_CONF_H_ */