From 85cc0c57e4fd0e44c3b270aba4f87eb28151b1a2 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Wed, 8 Feb 2006 05:38:38 +0000 Subject: Add textfile_foreach() function --- common/textfile.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'common/textfile.h') 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); -- cgit