diff options
author | Eric Wong <normalperson@yhbt.net> | 2008-10-11 22:03:05 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-10-12 05:27:33 -0700 |
commit | 4111d84ad5b72f871d35f76a47765c138a201611 (patch) | |
tree | fd87325733161d0aff350531b8001601bd081b2e /src/dirvec.h | |
parent | 7284123e3555159c6550d5ac57b8334bdd1af5c1 (diff) | |
download | mpd-4111d84ad5b72f871d35f76a47765c138a201611.tar.gz mpd-4111d84ad5b72f871d35f76a47765c138a201611.tar.xz mpd-4111d84ad5b72f871d35f76a47765c138a201611.zip |
dirvec: add dirvec_for_each iterator
This will make it easier to introduce locking
Diffstat (limited to '')
-rw-r--r-- | src/dirvec.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dirvec.h b/src/dirvec.h index 02496cd2b..b820e8739 100644 --- a/src/dirvec.h +++ b/src/dirvec.h @@ -23,4 +23,7 @@ static inline void 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 */ |