src/irc_log.h
author Tero Marttila <terom@fixme.fi>
Sun, 15 Mar 2009 01:17:22 +0200
branchmodules
changeset 55 6f7f6ae729d0
parent 26 aec062af155d
child 56 942370000450
permissions -rw-r--r--
'working' modules code, and convert irc_log to use said interface, but we've hit the limits on our Makefile, and the compiled module doesn't really work
#ifndef IRC_LOG_H
#define IRC_LOG_H

/**
 * @file
 *
 * Module for logging IRC events to an SQL database
 */
#include "module.h"
#include "error.h"
#include "irc_chan.h"
#include <event2/event.h>

/**
 * Initialize the irc_log module to use the given configuration
 */
void* irc_log_init (struct modules *modules, struct error_info *err);

/**
 * Set one of the config options:
 *
 *  db_info     - the database connection string
 *  channel     - the network:channel to log
 */
err_t irc_log_conf (struct module *module, const char *name, char *value);

#endif