Added the configuration feature (config.h & config.c) that allow the bot reads the...
[Cbot.git] / config.h
blobaaf51d0da2fef29e16ed0bcfa01d2b2ab7b7f4bd
1 /* config.h - Prototypes of the configuration's functions
2 * ========================================================
4 * This file contains the prototypes of the functions which
5 * reads the config file. This config file will contains
6 * the IRC server, port , channel where the bot will
7 * connect, and the nickname of the bot.
8 ************************************************************/
9 #ifndef _CONFIG_H
10 #define _CONFIG_H
12 #define CONFIG_FILE "./cbot.conf"
14 /* The follow structure sets the information that contains
15 * the config file.
16 ************************************************************/
17 struct _config{
18 char irc_server[128];
19 int irc_port;
20 char irc_channel[30];
21 char irc_nick[30];
24 /* The `set_config' function will read CONFIG_FILE and will
25 * set the information required to the irc-bot. The required
26 * information will be stored into a `_config' structure.
27 ***********************************************************/
28 struct _config *set_config( void );
30 #endif /* _CONFIG_H */