src/irc_log.h
branchmodules
changeset 57 ce1accba5fc7
parent 56 942370000450
equal deleted inserted replaced
56:942370000450 57:ce1accba5fc7
     1 #ifndef IRC_LOG_H
       
     2 #define IRC_LOG_H
       
     3 
     1 
     4 /**
       
     5  * @file
       
     6  *
       
     7  * Module for logging IRC events to an SQL database
       
     8  */
       
     9 #include "module.h"
       
    10 #include "error.h"
       
    11 #include "irc_chan.h"
       
    12 #include <event2/event.h>
       
    13 
       
    14 /**
       
    15  * Initialize the irc_log module to use the given configuration
       
    16  */
       
    17 void* irc_log_init (struct modules *modules, struct error_info *err);
       
    18 
       
    19 /**
       
    20  * Set one of the config options:
       
    21  *
       
    22  *  db_info     - the database connection string
       
    23  *  channel     - the '<network>/<channel>' to log
       
    24  */
       
    25 err_t irc_log_conf (void *mod_ctx, const char *name, char *value, struct error_info *err);
       
    26 
       
    27 #endif