cleanups; moved structure declarations from vunify.c into this headerfile
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Mon, 19 Jan 2004 18:19:45 +0000 (18:19 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Mon, 19 Jan 2004 18:19:45 +0000 (18:19 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@645 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/src/vunify.h

index 3a404df..b3186e5 100644 (file)
 struct dirent;
 struct WalkdownInfo
 {
-    PathInfo                   state;
-    struct MatchList           dst_list;
+    PathInfo                           state;
+    struct MatchList                   dst_list;
     struct {
-       struct MatchList *      v;
-       size_t                  l;
-    }                          src_lists;
+       struct MatchList *              v;
+       size_t                          l;
+    }                                  src_lists;
 };
 
+struct SkipReason {
+    enum { rsDOTFILE, rsEXCL_DST, rsEXCL_SRC,
+          rsFSTAT, rsNOEXISTS, rsSYMLINK, rsUNIFIED,
+          rsDIFFERENT }        r;
+
+    union {
+       struct MatchList const *        list;
+    }                                  d;
+};
+
+struct Arguments {
+    enum {mdMANUALLY, mdVSERVER}       mode;
+    bool                               do_revert;
+    bool                               do_dry_run;
+    unsigned int                       verbosity;
+    bool                               local_fs;
+    bool                               do_renew;
+};
+
+
 static void    visitDirEntry(struct dirent const *) NONNULL((1));
 static void    visitDir(char const *, struct stat const *) NONNULL((1));
 static bool    checkFstat(struct MatchList const * const,