aboutsummaryrefslogtreecommitdiffstats
path: root/src/textfile.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/textfile.h')
-rw-r--r--src/textfile.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/textfile.h b/src/textfile.h
index 8353bc7a..dc5fc2b7 100644
--- a/src/textfile.h
+++ b/src/textfile.h
@@ -36,7 +36,8 @@ int textfile_casedel(const char *pathname, const char *key);
char *textfile_get(const char *pathname, const char *key);
char *textfile_caseget(const char *pathname, const char *key);
-int textfile_foreach(const char *pathname,
- void (*func)(char *key, char *value, void *data), void *data);
+typedef void (*textfile_cb) (char *key, char *value, void *data);
+
+int textfile_foreach(const char *pathname, textfile_cb func, void *data);
#endif /* __TEXTFILE_H */