diff options
author | Lars Hjemli <hjemli@gmail.com> | 2008-03-28 02:09:11 +0300 |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2008-03-28 02:09:11 +0300 |
commit | 20a33548b9a87a6eb23162ee5d137daa46d78613 (patch) | |
tree | 9c4ca364df64dcce640a531c7f515ee48bc99387 /configfile.h | |
parent | ee4056bd2c902a12dea67874368863fe60ea5a5f (diff) |
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>
Diffstat (limited to 'configfile.h')
-rw-r--r-- | configfile.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/configfile.h b/configfile.h new file mode 100644 index 0000000..04235e5 --- /dev/null +++ b/configfile.h @@ -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 */ |