66 lines
1.0 KiB
C
66 lines
1.0 KiB
C
#ifndef _CONFIG_H_
|
|
# define _CONFIG_H_ 1
|
|
|
|
typedef struct _Config_Channel Config_Channel;
|
|
typedef struct _Config_Server Config_Server;
|
|
typedef struct _Config_Network Config_Network;
|
|
typedef struct _Config Config;
|
|
|
|
struct _Config_Channel
|
|
{
|
|
const char *name;
|
|
const char *pass;
|
|
};
|
|
|
|
struct _Config_Server
|
|
{
|
|
const char *name;
|
|
int port;
|
|
};
|
|
|
|
struct _Config_Network
|
|
{
|
|
const char *name;
|
|
const char *nick_passwd;
|
|
const char *server_passwd;
|
|
Eina_Bool autoconnect;
|
|
Eina_Bool bypass_proxy;
|
|
Eina_Bool use_ssl;
|
|
Eina_List *servers;
|
|
Eina_List *channels;
|
|
};
|
|
|
|
struct _Config
|
|
{
|
|
int version;
|
|
|
|
const char *nick;
|
|
const char *name;
|
|
|
|
struct
|
|
{
|
|
const char *name;
|
|
int size;
|
|
Eina_Bool bitmap;
|
|
} font;
|
|
|
|
struct
|
|
{
|
|
Eina_Bool translucent;
|
|
int opacity;
|
|
double zoom;
|
|
int scrollback;
|
|
} gui;
|
|
|
|
Eina_List *networks;
|
|
};
|
|
|
|
extern Config *_ex_cfg;
|
|
|
|
Eina_Bool _config_init(void);
|
|
Eina_Bool _config_shutdown(void);
|
|
void _config_load(void);
|
|
void _config_save(void);
|
|
|
|
#endif
|