]> wimlib.net Git - wimlib/blobdiff - include/wimlib/wildcard.h
test-imagex-mount: Always use tmp.mnt for mounts
[wimlib] / include / wimlib / wildcard.h
index 29636a44e7b92d5b9bc7dd7e50ef6b05bd226066..edd9d84b12ba2433bb3651d1f2f5a2e3fbf6fb9b 100644 (file)
@@ -3,6 +3,8 @@
 
 #include <wimlib/types.h>
 
+struct wim_dentry;
+
 #define WILDCARD_FLAG_WARN_IF_NO_MATCH         0x00000001
 #define WILDCARD_FLAG_ERROR_IF_NO_MATCH                0x00000002
 #define WILDCARD_FLAG_CASE_INSENSITIVE         0x00000004
@@ -14,19 +16,8 @@ expand_wildcard(WIMStruct *wim,
                void *consume_dentry_ctx,
                u32 flags);
 
-#ifdef __WIN32__
-extern int
-fnmatch(const tchar *pattern, const tchar *string, int flags);
-#  define FNM_CASEFOLD 0x1
-#  define FNM_PATHNAME 0x2
-#  define FNM_NOESCAPE 0x4
-#  define FNM_NOMATCH 1
-#else
-#  include <fnmatch.h>
-#  ifndef FNM_CASEFOLD
-#    warning "FNM_CASEFOLD not defined!"
-#    define FNM_CASEFOLD 0
-#  endif
-#endif
+extern bool
+match_path(const tchar *path, size_t path_nchars,
+          const tchar *wildcard, tchar path_sep, bool prefix_ok);
 
 #endif /* _WIMLIB_WILDCARD_H  */