aboutsummaryrefslogtreecommitdiffstats
path: root/configfile.h
diff options
context:
space:
mode:
authorGravatar Lars Hjemli <hjemli@gmail.com>2008-03-28 08:09:11 (JST)
committerGravatar Lars Hjemli <hjemli@gmail.com>2008-03-28 08:09:11 (JST)
commit20a33548b9a87a6eb23162ee5d137daa46d78613 (patch)
tree9c4ca364df64dcce640a531c7f515ee48bc99387 /configfile.h
parentee4056bd2c902a12dea67874368863fe60ea5a5f (diff)
downloadcgit-20a33548b9a87a6eb23162ee5d137daa46d78613.zip
cgit-20a33548b9a87a6eb23162ee5d137daa46d78613.tar.gz
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.h8
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 @@
1#ifndef CONFIGFILE_H
2#define CONFIGFILE_H
3
4typedef void (*configfile_value_fn)(const char *name, const char *value);
5
6extern int parse_configfile(const char *filename, configfile_value_fn fn);
7
8#endif /* CONFIGFILE_H */