aboutsummaryrefslogtreecommitdiffstats
path: root/src/songvec.h
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-10-07 22:07:29 +0200
committerMax Kellermann <max@duempel.org>2008-10-07 22:07:29 +0200
commitbb04c6342e692b39d04126940570a5ade9ca371a (patch)
treec2c5fbbcce69fbb6d53ee46d5c15587a8b88305a /src/songvec.h
parente19f6905d9c209d7587177dbfdbc58869a2167cc (diff)
downloadmpd-bb04c6342e692b39d04126940570a5ade9ca371a.tar.gz
mpd-bb04c6342e692b39d04126940570a5ade9ca371a.tar.xz
mpd-bb04c6342e692b39d04126940570a5ade9ca371a.zip
songvec: add songvec_for_each iterator
This is so we can more consistently deal with locking needed for thread-safety in iterator functions.
Diffstat (limited to '')
-rw-r--r--src/songvec.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/songvec.h b/src/songvec.h
index 47b5ea6c0..dbe6be508 100644
--- a/src/songvec.h
+++ b/src/songvec.h
@@ -19,4 +19,6 @@ void songvec_add(struct songvec *sv, Song *add);
void songvec_destroy(struct songvec *sv);
+int songvec_for_each(struct songvec *sv, int (*fn)(Song *, void *), void *arg);
+
#endif /* SONGVEC_H */