diff options
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); |