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 | |
Paul Fox | b6f7164 | 2005-09-22 19:03:24 +0000 | [diff] [blame^] | 17 | struct option_set *find_option(struct option_set *opt_list, char code); |
| 18 | void attach_option(struct option_set **opt_list, struct dhcp_option *option, char *buffer, int length); |
| 19 | |
Russ Dill | 61fb489 | 2002-10-14 21:41:28 +0000 | [diff] [blame] | 20 | #endif |