summaryrefslogtreecommitdiff
path: root/package/cfgfs/src/fts_subs.h
blob: c7d2c10fcfd45009b63b0cc5d2060339dd8e8ebf (plain)
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
36
37
/* $MirOS: contrib/hosted/fwcf/fts_subs.h,v 1.6 2006/09/26 10:25:03 tg Exp $ */

/*
 * This file is part of the FreeWRT project. FreeWRT is copyrighted
 * material, please see the LICENCE file in the top-level directory
 * or at http://www.freewrt.org/licence for details.
 */

#ifndef FTS_SUBS_H
#define FTS_SUBS_H

struct FTSF_ENTRY {
	char pathname[MAXPATHLEN];
	struct stat *statp;
	enum {
		FTSF_DIR,
		FTSF_FILE,
		FTSF_SYMLINK,
		FTSF_OTHER
	} etype;
};
#ifndef PACK_H
typedef struct FTSF_ENTRY ftsf_entry;
#endif

#ifndef FTSF_INTERNALS
extern const char ftsf_prefix[];
#endif

__BEGIN_DECLS
void ftsf_start(const char *);
/* returns -1 on error, 0 on empty, 1 on okay */
int ftsf_next(ftsf_entry *);
void ftsf_debugent(ftsf_entry *);
__END_DECLS

#endif