-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.h
30 lines (26 loc) · 1.18 KB
/
config.h
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
#ifndef CONFIG__H
#define CONFIG__H
struct program_options {
int poll_period,
mouse_period, /* Move mouse every (s) if on */
mouse_dist, /* Pixels to jiggle mouse */
idle_threshold, /* Treat time as idle (s) */
save_options,
use_database,
text_out, /* Print to console or file */
pause, /* Don't record */
jiggle, /* Move mouse */
weather, /* Download? */
cycle_db, /* Close database after writes? */
menu_len, /* Number of custom menu items */
*userdef; /* Menu items active */
char filename[256],
dbname[256],
time_format[64],
airport[8],
**menu_items; /* Custom menu items */
};
int get_configuration (struct program_options *);
int save_configuration (struct program_options *);
int parse_options (int, char **, struct program_options *);
#endif