aboutsummaryrefslogtreecommitdiffstats
path: root/src/dirvec.h
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-10-21 01:30:30 +0200
committerMax Kellermann <max@duempel.org>2008-10-21 01:30:30 +0200
commitf2525e3efbd35262ac1fa017482c8a70c11f35c0 (patch)
tree29d4bb929c206e4a8006a5e8e93317dc28e5e417 /src/dirvec.h
parent1d385190a07007ec7c4f7a880ab16ef4fce88cf4 (diff)
downloadmpd-f2525e3efbd35262ac1fa017482c8a70c11f35c0.tar.gz
mpd-f2525e3efbd35262ac1fa017482c8a70c11f35c0.tar.xz
mpd-f2525e3efbd35262ac1fa017482c8a70c11f35c0.zip
dirvec: add dirvec_for_each iterator
This will make it easier to introduce locking
Diffstat (limited to '')
-rw-r--r--src/dirvec.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dirvec.h b/src/dirvec.h
index 2cdfb3196..746143aee 100644
--- a/src/dirvec.h
+++ b/src/dirvec.h
@@ -24,4 +24,7 @@ dirvec_clear(struct dirvec *dv)
void dirvec_destroy(struct dirvec *dv);
+int dirvec_for_each(const struct dirvec *dv,
+ int (*fn)(struct directory *, void *), void *arg);
+
#endif /* DIRVEC_H */