dirvec: added dirvec_clear()

This commit is contained in:
Max Kellermann 2008-10-09 15:37:41 +02:00
parent 476578d2a9
commit 96c681e2db

View File

@ -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 */