-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtreewalk.h
35 lines (24 loc) · 1.08 KB
/
treewalk.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
* multihash - compute hashes on collections of files
* Copyright (c) 2016 Nicolas George <[email protected]>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published
* by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*/
typedef struct Treewalk Treewalk;
int treewalk_open(Treewalk **rtw, const char *path);
void treewalk_free(Treewalk **rtw);
void treewalk_set_follow(Treewalk *tw, int val);
void treewalk_set_exclude(Treewalk *tw, const char **excl, size_t nb_excl);
int treewalk_next(Treewalk *tw);
const char *treewalk_get_path(const Treewalk *tw);
const struct stat *treewalk_get_stat(const Treewalk *tw);
int treewalk_get_fd(const Treewalk *tw);
const char *treewalk_readlink(const Treewalk *tw);
int treewalk_get_subtree_skipped(const Treewalk *tw);