X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=include%2Fwimlib%2Fcapture.h;fp=include%2Fwimlib%2Fcapture.h;h=aa9c4cda46697ba5e1d13aa2acf1da538f615e15;hb=0e8a218c22b3c5d42ccc368b3b45d270f942cfde;hp=995a60f3fb4906ac95339075f4c4bd713fe92c80;hpb=0230cefb4cee3580a705364232feb72258994237;p=wimlib diff --git a/include/wimlib/capture.h b/include/wimlib/capture.h index 995a60f3..aa9c4cda 100644 --- a/include/wimlib/capture.h +++ b/include/wimlib/capture.h @@ -17,7 +17,7 @@ struct capture_config { struct string_set exclusion_exception_pats; tchar *prefix; size_t prefix_num_tchars; - tchar *buf; + void *buf; }; /* Common parameters to implementations of building an in-memory dentry tree @@ -65,12 +65,20 @@ do_capture_progress(struct add_image_params *params, int status, const struct wim_inode *inode); extern int -do_read_capture_config_file(const tchar *config_file, tchar *buf, size_t buflen, - struct capture_config *config); +mangle_pat(tchar *pat, const tchar *path, unsigned long line_no); + +extern int +do_read_capture_config_file(const tchar *config_file, const void *buf, + size_t bufsize, struct capture_config *config); extern void destroy_capture_config(struct capture_config *config); +extern bool +match_pattern(const tchar *path, + const tchar *path_basename, + const struct string_set *list); + extern bool exclude_path(const tchar *path, size_t path_len, const struct capture_config *config,