1 #ifndef _WIMLIB_PATTERN_H
2 #define _WIMLIB_PATTERN_H
4 #include "wimlib/types.h"
8 /* Flags for match_path() and match_pattern_list() */
11 * If set, subdirectories (and sub-files) are also matched.
12 * For example, the pattern "/dir" would match the path "/dir/file".
14 #define MATCH_RECURSIVELY 0x01
17 * If set, ancestor directories are also matched.
18 * For example, the pattern "/dir/file" would match the path "/dir".
20 #define MATCH_ANCESTORS 0x02
23 match_path(const tchar *path, const tchar *pattern, int match_flags);
26 expand_path_pattern(struct wim_dentry *root, const tchar *pattern,
27 int (*consume_dentry)(struct wim_dentry *, void *),
30 #endif /* _WIMLIB_PATTERN_H */