feat(tree): added an option to get the full repo path in walk and added a sort function for the path buffer
This commit is contained in:
parent
02df919575
commit
d7e754b67e
2 changed files with 31 additions and 6 deletions
|
|
@ -10,6 +10,7 @@
|
|||
#include <unistd.h>
|
||||
#include <zlib.h>
|
||||
|
||||
#include "utilities.h"
|
||||
|
||||
typedef struct {
|
||||
char** paths;
|
||||
|
|
@ -19,9 +20,10 @@ typedef struct {
|
|||
|
||||
PathBuffer* new_path_buffer();
|
||||
void add_path(PathBuffer*, char*);
|
||||
void sort_path_buffer(PathBuffer*);
|
||||
void free_path_buffer(PathBuffer*);
|
||||
char* find_root(char*);
|
||||
void walk(const char*, const char*, const char*, PathBuffer*);
|
||||
void walk(char*, char*, char*, PathBuffer*, int, char*);
|
||||
void save_tree(const char*, PathBuffer*);
|
||||
|
||||
#endif // TREE_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue