2002-10-15 03:11:28 +05:30
|
|
|
/* files.h */
|
|
|
|
#ifndef _FILES_H
|
|
|
|
#define _FILES_H
|
|
|
|
|
|
|
|
struct config_keyword {
|
2003-06-10 22:52:49 +05:30
|
|
|
const char *keyword;
|
|
|
|
int (* const handler)(const char *line, void *var);
|
2002-10-15 03:11:28 +05:30
|
|
|
void *var;
|
2003-06-10 22:52:49 +05:30
|
|
|
const char *def;
|
2002-10-15 03:11:28 +05:30
|
|
|
};
|
|
|
|
|
|
|
|
|
2003-06-10 22:52:49 +05:30
|
|
|
int read_config(const char *file);
|
2002-10-15 03:11:28 +05:30
|
|
|
void write_leases(void);
|
2003-06-10 22:52:49 +05:30
|
|
|
void read_leases(const char *file);
|
2002-10-15 03:11:28 +05:30
|
|
|
|
|
|
|
#endif
|