diff options
author | Wayne Davison <wayne@opencoder.net> | 2020-05-24 12:56:00 -0700 |
---|---|---|
committer | Wayne Davison <wayne@opencoder.net> | 2020-05-24 13:22:19 -0700 |
commit | 2f84a6bd73e1a6e2081b1bcb965049ef83b2ce45 (patch) | |
tree | 27c950c236f05d3fac4863f9437c57f72ca8ac66 /rsync.h | |
parent | eda15d52a8b07ea09643c3c5fc788f4c33986c3a (diff) | |
download | rsync-2f84a6bd73e1a6e2081b1bcb965049ef83b2ce45.tar.gz |
Add support for negotiated checksum names.
Diffstat (limited to 'rsync.h')
-rw-r--r-- | rsync.h | 21 |
1 files changed, 17 insertions, 4 deletions
@@ -1061,6 +1061,20 @@ typedef struct { #define ACL_READY(sx) ((sx).acc_acl != NULL) #define XATTR_READY(sx) ((sx).xattr != NULL) +struct name_num_item { + int num; + const char *name, *main_name; +}; + +struct name_num_obj { + const char *type; + const char *negotiated_name; + uchar *saw; + int saw_len; + int negotiated_num; + struct name_num_item list[]; +}; + #ifndef __cplusplus #include "proto.h" #endif @@ -1090,7 +1104,6 @@ int vsnprintf(char *str, size_t count, const char *fmt, va_list args); int snprintf(char *str, size_t count, const char *fmt,...); #endif - #ifndef HAVE_STRERROR extern char *sys_errlist[]; #define strerror(i) sys_errlist[i] @@ -1317,8 +1330,7 @@ extern short info_levels[], debug_levels[]; #define DEBUG_CHDIR (DEBUG_BIND+1) #define DEBUG_CONNECT (DEBUG_CHDIR+1) #define DEBUG_CMD (DEBUG_CONNECT+1) -#define DEBUG_CSUM (DEBUG_CMD+1) -#define DEBUG_DEL (DEBUG_CSUM+1) +#define DEBUG_DEL (DEBUG_CMD+1) #define DEBUG_DELTASUM (DEBUG_DEL+1) #define DEBUG_DUP (DEBUG_DELTASUM+1) #define DEBUG_EXIT (DEBUG_DUP+1) @@ -1330,7 +1342,8 @@ extern short info_levels[], debug_levels[]; #define DEBUG_HLINK (DEBUG_HASH+1) #define DEBUG_ICONV (DEBUG_HLINK+1) #define DEBUG_IO (DEBUG_ICONV+1) -#define DEBUG_OWN (DEBUG_IO+1) +#define DEBUG_NSTR (DEBUG_IO+1) +#define DEBUG_OWN (DEBUG_NSTR+1) #define DEBUG_PROTO (DEBUG_OWN+1) #define DEBUG_RECV (DEBUG_PROTO+1) #define DEBUG_SEND (DEBUG_RECV+1) |