diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2006-02-08 05:38:38 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2006-02-08 05:38:38 +0000 |
commit | 85cc0c57e4fd0e44c3b270aba4f87eb28151b1a2 (patch) | |
tree | 224ae692ccbed28ac1b5657835849a5e96b267dc /common/textfile.h | |
parent | 9b993dda376d1c74575ed8984b0cf07d1d671f8c (diff) |
Add textfile_foreach() function
Diffstat (limited to 'common/textfile.h')
-rw-r--r-- | common/textfile.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/textfile.h b/common/textfile.h index 62ad4b80..3c8b6841 100644 --- a/common/textfile.h +++ b/common/textfile.h @@ -27,3 +27,6 @@ int create_file(char *filename, mode_t mode); int textfile_put(char *pathname, char *key, char *value); int textfile_del(char *pathname, char *key); char *textfile_get(char *pathname, char *key); + +int textfile_foreach(char *pathname, + void (*func)(char *key, char *value, void *data), void *data); |