2011-08-01 03:23:14 +00:00
|
|
|
#ifndef __BASICCONFIG_H_
|
|
|
|
#define __BASICCONFIG_H_
|
|
|
|
|
|
|
|
int readConfig(void);
|
|
|
|
int saveConfig(void);
|
|
|
|
void applyConfig(void);
|
2011-08-04 12:33:39 +00:00
|
|
|
void enableConfig(char type,char enable);
|
2011-08-01 03:23:14 +00:00
|
|
|
|
|
|
|
struct CDESC {
|
|
|
|
char *name;
|
|
|
|
char value;
|
|
|
|
char min;
|
|
|
|
char max;
|
2011-08-04 12:33:39 +00:00
|
|
|
unsigned disabled :1;
|
|
|
|
unsigned type :3;
|
2011-08-01 03:23:14 +00:00
|
|
|
};
|
|
|
|
|
2011-08-04 12:33:39 +00:00
|
|
|
#define CFG_TYPE_BASIC 0
|
|
|
|
#define CFG_TYPE_DEVEL 1
|
|
|
|
#define CFG_TYPE_FLAME 2
|
|
|
|
|
2011-08-01 03:23:14 +00:00
|
|
|
#define MAXNICK 20
|
|
|
|
extern struct CDESC the_config[];
|
2011-08-04 14:57:18 +00:00
|
|
|
extern char nickname[];
|
2011-08-01 03:23:14 +00:00
|
|
|
extern char nickfont[];
|
2011-08-04 14:57:18 +00:00
|
|
|
extern char nickl0[];
|
2011-08-01 03:23:14 +00:00
|
|
|
|
2011-08-02 08:54:05 +00:00
|
|
|
#define GLOBALversion (the_config[ 0].value)
|
|
|
|
#define GLOBALprivacy (the_config[ 1].value)
|
|
|
|
#define GLOBALdaytrig (the_config[ 2].value)
|
|
|
|
#define GLOBALdaytrighyst (the_config[ 3].value)
|
|
|
|
#define GLOBALdayinvert (the_config[ 4].value)
|
|
|
|
#define GLOBALlcdbacklight (the_config[ 5].value)
|
|
|
|
#define GLOBALlcdmirror (the_config[ 6].value)
|
|
|
|
#define GLOBALlcdinvert (the_config[ 7].value)
|
|
|
|
#define GLOBALlcdcontrast (the_config[ 8].value)
|
|
|
|
#define GLOBALalivechk (the_config[ 9].value)
|
2011-08-04 13:02:51 +00:00
|
|
|
#define GLOBALdevelmode (the_config[10].value)
|
|
|
|
#define GLOBALflamemax (the_config[11].value)
|
|
|
|
#define GLOBALflamemin (the_config[12].value)
|
|
|
|
#define GLOBALflamespeed (the_config[13].value)
|
|
|
|
#define GLOBALflamemaxw (the_config[14].value)
|
|
|
|
#define GLOBALflameminw (the_config[15].value)
|
2011-08-04 14:57:18 +00:00
|
|
|
#define GLOBALl0nick (the_config[16].value)
|
2011-08-01 03:23:14 +00:00
|
|
|
#define GLOBALnickname (nickname)
|
|
|
|
#define GLOBALnickfont (nickfont)
|
2011-08-04 14:57:18 +00:00
|
|
|
#define GLOBALnickl0 (nickl0)
|
2011-08-01 03:23:14 +00:00
|
|
|
|
|
|
|
#define GLOBAL(x) GLOBAL ## x
|
|
|
|
|
|
|
|
#endif
|