]> jfr.im git - irc/thales.git/blob - src/cmd.h
d312b37a646366863d47343a43eef3bfdce5b563
[irc/thales.git] / src / cmd.h
1 /* Command line parsing program of GNU Thales. Copyright (C)
2 2012 Free Software Foundation, Inc. This file is part of GNU Thales.
3
4 GNU Thales is free software; you can redistribute it and/or modify it under the
5 terms of the GNU General Public License as published by the Free Software
6 Foundation; either version 3 of the License, or (at your option) any later
7 version.
8
9 GNU Thales is distributed in the hope that it will be useful, but
10 WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 General Public License for more details.
13
14 You should have received a copy of the GNU General Public License along with
15 this program. If not, see <http://www.gnu.org/licenses/>. */
16
17 #ifndef CMD_H
18 #define CMD_H
19 struct irc_options {
20 const char *server;
21 const char *nick;
22 unsigned short port;
23 char **channels;
24 };
25 struct mysql_options {
26 const char *host;
27 const char *username;
28 const char *password;
29 const char *database;
30 unsigned short int port;
31 };
32
33 FILE* default_config_file(void);
34 void parse_cmd_options(struct irc_options *opts, int argc, char **argv);
35 void parse_mysql_options(struct mysql_options *opts, FILE *stream);
36
37 #endif