diff -r 9f74e924b01a -r 6f7f6ae729d0 src/irc_log.h --- a/src/irc_log.h Fri Mar 13 17:38:23 2009 +0200 +++ b/src/irc_log.h Sun Mar 15 01:17:22 2009 +0200 @@ -4,28 +4,24 @@ /** * @file * - * Logging IRC events to an SQL database + * Module for logging IRC events to an SQL database */ +#include "module.h" #include "error.h" #include "irc_chan.h" #include /** - * Configuration state for irc_log + * Initialize the irc_log module to use the given configuration */ -struct irc_log_info { - /** Database connection string */ - const char *db_info; - - /** The channel to log */ - struct irc_chan *channel; -}; +void* irc_log_init (struct modules *modules, struct error_info *err); /** - * Initialize the global irc_log module to use the given configuration + * Set one of the config options: * - * XXX: db_info is still unused if not specified + * db_info - the database connection string + * channel - the network:channel to log */ -err_t irc_log_init (struct event_base *ev_base, const struct irc_log_info *info); +err_t irc_log_conf (struct module *module, const char *name, char *value); #endif