]> wimlib.net Git - wimlib/blobdiff - include/wimlib/pattern.h
Simplify wildcard pattern expansion
[wimlib] / include / wimlib / pattern.h
diff --git a/include/wimlib/pattern.h b/include/wimlib/pattern.h
new file mode 100644 (file)
index 0000000..67c2073
--- /dev/null
@@ -0,0 +1,16 @@
+#ifndef _WIMLIB_PATTERN_H
+#define _WIMLIB_PATTERN_H
+
+#include "wimlib/types.h"
+
+struct wim_dentry;
+
+extern bool
+match_path(const tchar *path, const tchar *pattern, bool prefix_ok);
+
+extern int
+expand_path_pattern(struct wim_dentry *root, const tchar *pattern,
+                   int (*consume_dentry)(struct wim_dentry *, void *),
+                   void *ctx);
+
+#endif /* _WIMLIB_PATTERN_H  */