Russ Dill | 61fb489 | 2002-10-14 21:41:28 +0000 | [diff] [blame] | 1 | /* files.h */ |
2 | #ifndef _FILES_H | ||||
3 | #define _FILES_H | ||||
4 | |||||
5 | struct config_keyword { | ||||
Glenn L McGrath | 2483343 | 2003-06-10 17:22:49 +0000 | [diff] [blame^] | 6 | const char *keyword; |
7 | int (* const handler)(const char *line, void *var); | ||||
Russ Dill | 61fb489 | 2002-10-14 21:41:28 +0000 | [diff] [blame] | 8 | void *var; |
Glenn L McGrath | 2483343 | 2003-06-10 17:22:49 +0000 | [diff] [blame^] | 9 | const char *def; |
Russ Dill | 61fb489 | 2002-10-14 21:41:28 +0000 | [diff] [blame] | 10 | }; |
11 | |||||
12 | |||||
Glenn L McGrath | 2483343 | 2003-06-10 17:22:49 +0000 | [diff] [blame^] | 13 | int read_config(const char *file); |
Russ Dill | 61fb489 | 2002-10-14 21:41:28 +0000 | [diff] [blame] | 14 | void write_leases(void); |
Glenn L McGrath | 2483343 | 2003-06-10 17:22:49 +0000 | [diff] [blame^] | 15 | void read_leases(const char *file); |
Russ Dill | 61fb489 | 2002-10-14 21:41:28 +0000 | [diff] [blame] | 16 | |
17 | #endif |