X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fcommon.h;h=cc3483e224a35b091800f0de992563dda33a03bb;hb=b4ec8aedf9c8948bee9bf1635132a7da7a522611;hp=947546a1d4d8836d6567aafe412bde774b0e0460;hpb=5354888e400e0565e85ac29e4826c0f7840cab45;p=chaz%2Ftar diff --git a/src/common.h b/src/common.h index 947546a..cc3483e 100644 --- a/src/common.h +++ b/src/common.h @@ -346,9 +346,6 @@ GLOBAL bool unquote_option; GLOBAL bool test_label_option; /* Test archive volume label and exit */ -/* Apply transformations to symlink targets as well. */ -GLOBAL bool transform_symlinks_option; - /* Show file or archive names after transformation. In particular, when creating archive in verbose mode, list member names as stored in the archive */ @@ -738,17 +735,16 @@ bool string_ascii_p (const char *str); bool utf8_convert (bool to_utf, char const *input, char **output); /* Module transform.c */ -typedef enum - { - xform_regfile, - xform_link, - xform_symlink - } xform_type; +#define XFORM_REGFILE 0x01 +#define XFORM_LINK 0x02 +#define XFORM_SYMLINK 0x04 +#define XFORM_ALL (XFORM_REGFILE|XFORM_LINK|XFORM_SYMLINK) void set_transform_expr (const char *expr); -bool transform_name (char **pinput); -bool transform_member_name (char **pinput, xform_type type); -bool transform_name_fp (char **pinput, char *(*fun)(char *, void *), void *); +bool transform_name (char **pinput, int type); +bool transform_member_name (char **pinput, int type); +bool transform_name_fp (char **pinput, int type, + char *(*fun)(char *, void *), void *); /* Module suffix.c */ void set_comression_program_by_suffix (const char *name, const char *defprog);