aboutsummaryrefslogtreecommitdiffstats
path: root/src/dirvec.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-09 15:37:41 +0200
committerMax Kellermann <max@duempel.org>2008-10-09 15:37:41 +0200
commit96c681e2db9f8f707f80061360c9b6b680fe72e3 (patch)
treeaa3bdee5e3ebdd93b0c97ed42066ea7283dc4871 /src/dirvec.h
parent476578d2a9a439735a35b380c7b631b978ca1ca3 (diff)
downloadmpd-96c681e2db9f8f707f80061360c9b6b680fe72e3.tar.gz
mpd-96c681e2db9f8f707f80061360c9b6b680fe72e3.tar.xz
mpd-96c681e2db9f8f707f80061360c9b6b680fe72e3.zip
dirvec: added dirvec_clear()
Diffstat (limited to 'src/dirvec.h')
-rw-r--r--src/dirvec.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/dirvec.h b/src/dirvec.h
index f89c2cd19..2cdfb3196 100644
--- a/src/dirvec.h
+++ b/src/dirvec.h
@@ -16,6 +16,12 @@ int dirvec_delete(struct dirvec *dv, struct directory *del);
void dirvec_add(struct dirvec *dv, struct directory *add);
+static inline void
+dirvec_clear(struct dirvec *dv)
+{
+ dv->nr = 0;
+}
+
void dirvec_destroy(struct dirvec *dv);
#endif /* DIRVEC_H */