dirvec: add dirvec_for_each iterator
This will make it easier to introduce locking
This commit is contained in:

committed by
Max Kellermann

parent
1d385190a0
commit
f2525e3efb
@@ -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 */
|
||||
|
Reference in New Issue
Block a user