2019-01-17 19:07:47 +11:00
|
|
|
/*
|
|
|
|
* config.h
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define SZ_STRINGS 200
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
|
|
|
|
int valid;
|
|
|
|
|
2019-01-19 03:09:15 +11:00
|
|
|
char *input_device;
|
2019-01-23 03:23:11 +11:00
|
|
|
int input_speed;
|
2019-01-17 19:07:47 +11:00
|
|
|
|
|
|
|
|
|
|
|
} Configuration;
|
|
|
|
|
|
|
|
/* ---------------------------------------------------------------- */
|
|
|
|
|
2019-01-23 03:23:11 +11:00
|
|
|
int set_default_config(Configuration *cfg);
|
2019-01-17 19:07:47 +11:00
|
|
|
int parse_config(char *fname, int flags);
|
|
|
|
int show_config(char *title);
|
|
|
|
|
|
|
|
/* ---------------------------------------------------------------- */
|