aboutsummaryrefslogblamecommitdiffstats
path: root/src/dirvec.h
blob: 07566116c48cb1b16620f5648cc0a3de32ac141b (plain) (tree)
1
2
3
4
5
6
7
8
9


                





                                
 
                                    
 
                                                                   
 
                                                            
 
                                                          
 
                                       
 
                     
#ifndef DIRVEC_H
#define DIRVEC_H

#include <stddef.h>

struct dirvec {
	struct directory **base;
	size_t nr;
};

void dirvec_sort(struct dirvec *dv);

struct directory *dirvec_find(struct dirvec *dv, const char *path);

int dirvec_delete(struct dirvec *dv, struct directory *del);

void dirvec_add(struct dirvec *dv, struct directory *add);

void dirvec_destroy(struct dirvec *dv);

#endif /* DIRVEC_H */