blob: 02496cd2b8372a3fb40c8cb59a621dc194b3d6a9 (
plain) (
tree)
|
|
#ifndef DIRVEC_H
#define DIRVEC_H
#include "os_compat.h"
struct dirvec {
struct directory **base;
size_t nr;
};
void dirvec_sort(struct dirvec *dv);
struct directory *dirvec_find(const struct dirvec *dv, const char *path);
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 */
|