From 4762db4fc90e0bd0c04c9ba7c50123d378427fd0 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Tue, 1 Jul 2003 21:45:27 +0000 Subject: [PATCH] Added some defines for the various exclude-function arg literals. Added MATCHFLG_ABS_PATH flag for absolute-path patterns. --- rsync.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/rsync.h b/rsync.h index 41e65f9c..a4233b4d 100644 --- a/rsync.h +++ b/rsync.h @@ -85,6 +85,16 @@ #define MPLEX_BASE 7 +#define NO_EXCLUDES 0 +#define SERVER_EXCLUDES 1 +#define ALL_EXCLUDES 2 + +#define MISSING_OK 0 +#define MISSING_FATAL 1 + +#define ADD_INCLUDE 1 +#define ADD_EXCLUDE 0 + /* Log values. I *think* what these mean is: FLOG goes to the server * logfile; FERROR and FINFO try to end up on the client, with * different levels of filtering. */ @@ -424,6 +434,7 @@ struct map_struct { #define MATCHFLG_WILD 0x0001 /* pattern has '*', '[', and/or '?' */ #define MATCHFLG_WILD2 0x0002 /* pattern has '**' */ #define MATCHFLG_WILD2_PREFIX 0x0004 /* pattern starts with '**' */ +#define MATCHFLG_ABS_PATH 0x0008 /* path-match on absolute path */ struct exclude_struct { char *pattern; int match_flags; -- 2.34.1