diff options
author | Max Kellermann <max@duempel.org> | 2008-10-09 15:37:41 +0200 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-10-11 19:21:49 -0700 |
commit | 997d4c2ac9d6ea91cfcab8de195d3e7e40849a20 (patch) | |
tree | 12c02b6dfbcba857dc3fd9a2ffd9665ed6b071fa /src | |
parent | 8fabdfadaf2be72c5af9fd2b9804caf3cd0d14de (diff) | |
download | mpd-997d4c2ac9d6ea91cfcab8de195d3e7e40849a20.tar.gz mpd-997d4c2ac9d6ea91cfcab8de195d3e7e40849a20.tar.xz mpd-997d4c2ac9d6ea91cfcab8de195d3e7e40849a20.zip |
dirvec: added dirvec_clear()
Diffstat (limited to 'src')
-rw-r--r-- | src/dirvec.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/dirvec.h b/src/dirvec.h index cc0b0d6c2..02496cd2b 100644 --- a/src/dirvec.h +++ b/src/dirvec.h @@ -16,6 +16,11 @@ 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 */ |