Move function for configfile parsing into configfile.[ch]

This is a generic function which wanted its own little object file.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
Lars Hjemli 2008-03-28 00:09:11 +01:00
parent ee4056bd2c
commit 20a33548b9
6 changed files with 99 additions and 78 deletions

8
configfile.h Normal file
View file

@ -0,0 +1,8 @@
#ifndef CONFIGFILE_H
#define CONFIGFILE_H
typedef void (*configfile_value_fn)(const char *name, const char *value);
extern int parse_configfile(const char *filename, configfile_value_fn fn);
#endif /* CONFIGFILE_H */