diff options
author | Anderson Lizardo <anderson.lizardo@openbossa.org> | 2010-08-13 14:48:31 -0400 |
---|---|---|
committer | Anderson Lizardo <anderson.lizardo@openbossa.org> | 2010-08-26 09:29:56 -0400 |
commit | 05a3ffaf6ed7c01d2b05b1edebfbf810f3eb8fe2 (patch) | |
tree | 8e0d3b5b6cb8e244728a1cbc299fda2980376437 /src/textfile.c | |
parent | 679e5b3c00a16985455fc7fee8002a9feb1996ef (diff) | |
download | bluez-05a3ffaf6ed7c01d2b05b1edebfbf810f3eb8fe2.tar.gz |
Create typedef for textfile_foreach() callback
Diffstat (limited to 'src/textfile.c')
-rw-r--r-- | src/textfile.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/textfile.c b/src/textfile.c index a62cfe73e..2429cc70c 100644 --- a/src/textfile.c +++ b/src/textfile.c @@ -373,8 +373,7 @@ char *textfile_caseget(const char *pathname, const char *key) return read_key(pathname, key, 1); } -int textfile_foreach(const char *pathname, - void (*func)(char *key, char *value, void *data), void *data) +int textfile_foreach(const char *pathname, textfile_cb func, void *data) { struct stat st; char *map, *off, *end, *key, *value; |