Change sending/receiving/storing of the rdev value for special files.
[rsync/rsync.git] / rsync.h
diff --git a/rsync.h b/rsync.h
index be7cf8a..3656c76 100644 (file)
--- a/rsync.h
+++ b/rsync.h
@@ -96,7 +96,7 @@
 /* This is used when working on a new protocol version in CVS, and should
  * be a new non-zero value for each CVS change that affects the protocol.
  * It must ALWAYS be 0 when the protocol goes final (and NEVER before)! */
-#define SUBPROTOCOL_VERSION 5
+#define SUBPROTOCOL_VERSION 6
 
 /* We refuse to interoperate with versions that are not in this range.
  * Note that we assume we'll work with later versions: the onus is on
@@ -259,6 +259,10 @@ enum delret {
        DR_SUCCESS = 0, DR_FAILURE, DR_AT_LIMIT, DR_NOT_EMPTY
 };
 
+/* Defines for make_path() */
+#define MKP_DROP_NAME          (1<<0) /* drop trailing filename or trailing slash */
+#define MKP_SKIP_SLASH         (1<<1) /* skip one or more leading slashes */
+
 #include "errcode.h"
 
 #include "config.h"