]> wimlib.net Git - wimlib/blobdiff - include/wimlib/wildcard.h
Support "destructive" compression to save memory
[wimlib] / include / wimlib / wildcard.h
index 5bae113d5c7178b3412513dcbe76b4fcfd0d6339..4cf21eef2040bd4213c3a7728110c831723bc057 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef _WIMLIB_WILDCARD_H
 #define _WIMLIB_WILDCARD_H
 
-#include <wimlib/types.h>
+#include "wimlib/types.h"
 
 struct wim_dentry;
 
@@ -16,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  */