2008-09-29 13:11:40 +02:00
|
|
|
#ifndef DIRVEC_H
|
|
|
|
#define DIRVEC_H
|
|
|
|
|
2008-10-09 15:24:05 +02:00
|
|
|
#include <stddef.h>
|
|
|
|
|
|
|
|
struct dirvec {
|
|
|
|
struct directory **base;
|
|
|
|
size_t nr;
|
|
|
|
};
|
2008-09-29 13:11:40 +02:00
|
|
|
|
2008-10-08 06:55:10 +02:00
|
|
|
void dirvec_sort(struct dirvec *dv);
|
2008-09-29 13:11:40 +02:00
|
|
|
|
2008-10-08 10:49:05 +02:00
|
|
|
struct directory *dirvec_find(struct dirvec *dv, const char *path);
|
2008-09-29 13:11:40 +02:00
|
|
|
|
2008-10-08 10:49:05 +02:00
|
|
|
int dirvec_delete(struct dirvec *dv, struct directory *del);
|
2008-09-29 13:11:40 +02:00
|
|
|
|
2008-10-08 10:49:05 +02:00
|
|
|
void dirvec_add(struct dirvec *dv, struct directory *add);
|
2008-09-29 13:11:40 +02:00
|
|
|
|
2008-10-08 06:55:10 +02:00
|
|
|
void dirvec_destroy(struct dirvec *dv);
|
2008-09-29 13:11:40 +02:00
|
|
|
|
|
|
|
#endif /* DIRVEC_H */
|