Added a "next" pointer to "exclude_struct" and added a new structure
authorWayne Davison <wayned@samba.org>
Wed, 14 Apr 2004 23:33:37 +0000 (23:33 +0000)
committerWayne Davison <wayned@samba.org>
Wed, 14 Apr 2004 23:33:37 +0000 (23:33 +0000)
for exclude lists, exclude_list_struct, that holds the head/tail
pointers for the list.

rsync.h

diff --git a/rsync.h b/rsync.h
index 973840a..67cc4c1 100644 (file)
--- a/rsync.h
+++ b/rsync.h
@@ -493,6 +493,7 @@ struct map_struct {
 #define MATCHFLG_WILD2_PREFIX  (1<<2) /* pattern starts with '**' */
 #define MATCHFLG_ABS_PATH      (1<<3) /* path-match on absolute path */
 struct exclude_struct {
+       struct exclude_struct *next;
        char *pattern;
        int match_flags;
        int include;
@@ -500,6 +501,11 @@ struct exclude_struct {
        int slash_cnt;
 };
 
+struct exclude_list_struct {
+       struct exclude_struct *head;
+       struct exclude_struct *tail;
+};
+
 struct stats {
        int64 total_size;
        int64 total_transferred_size;