| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
#ifndef _FILES_H_ |
| 18 |
#define _FILES_H_ |
| 19 |
|
| 20 |
#ifdef __cplusplus |
| 21 |
extern "C" |
| 22 |
{ |
| 23 |
#endif |
| 24 |
|
| 25 |
enum |
| 26 |
{ |
| 27 |
FILES_DEFAULT = 0, |
| 28 |
FILES_DIRECTORIES_ONLY = (1 << 0), |
| 29 |
FILES_IGNORE_SYMLINKS = (1 << 1), |
| 30 |
FILES_IGNORE_UNKNOWN = (1 << 2), |
| 31 |
FILES_INCLUDE_HIDDEN = (1 << 3), |
| 32 |
FILES_RECURSIVE = (1 << 4), |
| 33 |
FILES_REGULAR_ONLY = (1 << 5) |
| 34 |
}; |
| 35 |
|
| 36 |
struct files_types |
| 37 |
{ |
| 38 |
int64_t directory; |
| 39 |
int64_t hidden; |
| 40 |
|
| 41 |
int64_t special_file; |
| 42 |
int64_t symlink; |
| 43 |
int64_t regular_file; |
| 44 |
int64_t total; |
| 45 |
int64_t unknown; |
| 46 |
}; |
| 47 |
|
| 48 |
int files_filecount (const char *dir, unsigned int flags, |
| 49 |
int64_t age, int64_t size, const char *pattern, |
| 50 |
struct files_types **filecount); |
| 51 |
|
| 52 |
#ifdef __cplusplus |
| 53 |
} |
| 54 |
#endif |
| 55 |
|
| 56 |
#endif |