4cf21eef2040bd4213c3a7728110c831723bc057
[wimlib] / include / wimlib / wildcard.h
1 #ifndef _WIMLIB_WILDCARD_H
2 #define _WIMLIB_WILDCARD_H
3
4 #include "wimlib/types.h"
5
6 struct wim_dentry;
7
8 #define WILDCARD_FLAG_WARN_IF_NO_MATCH          0x00000001
9 #define WILDCARD_FLAG_ERROR_IF_NO_MATCH         0x00000002
10 #define WILDCARD_FLAG_CASE_INSENSITIVE          0x00000004
11
12 extern int
13 expand_wildcard(WIMStruct *wim,
14                 const tchar *wildcard_path,
15                 int (*consume_dentry)(struct wim_dentry *, void *),
16                 void *consume_dentry_ctx,
17                 u32 flags);
18
19 extern bool
20 match_path(const tchar *path, size_t path_nchars,
21            const tchar *wildcard, tchar path_sep, bool prefix_ok);
22
23 #endif /* _WIMLIB_WILDCARD_H  */