blob: 77f49ced1cf0c4e401c6c7235b87a9b448307e0a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
#ifndef ESPIK_CONFIG_H
#define ESPIK_CONFIG_H
#include "espik.h"
#include "espik_global.h"
t_servinfo *espik_server_config_set (char*, unsigned short);
t_userinfo *espik_user_sysinfo_get ();
void espik_config_default_set ();
void espik_config_init ();
void espik_config_get (t_info*);
void espik_config_set (t_info);
void espik_config_shutdown (t_info);
#define ESPIK_CONFIG_VERSION 1
struct _espik_config
{
int config_version;
struct
{
char* name;
char* host;
int port;
char* nick;
char* pass;
unsigned int connect_at_startup : 1 ;
struct server* next;
} server;
struct
{
char* name;
} channel;
struct server* current_server;
struct channel* cuurent_channel;
};
#endif /* ESPIK_CONFIG_H */
|