src/irc_log.h
author Tero Marttila <terom@fixme.fi>
Sun, 08 Mar 2009 17:17:37 +0200
changeset 23 542c73d07d3c
child 26 aec062af155d
permissions -rw-r--r--
add a simple irc_log module (with evsql code) that joins a channel and log_info's PRIVMSGs
#ifndef IRC_LOG_H
#define IRC_LOG_H

/**
 * @file
 *
 * Logging IRC events to an SQL database
 */

#include "error.h"
#include "irc_conn.h"
#include <event2/event.h>

/**
 * Initialize the global irc_log state
 *
 * XXX: db_info is still unused if not specified
 */
err_t irc_log_init (struct event_base *ev_base, const char *db_info, struct irc_conn *irc, const char *channel);

#endif