first vesrion of working socket based rsync. It still needs a lot of
[rsync/rsync.git] / rsync.h
diff --git a/rsync.h b/rsync.h
index e520640..e2d7745 100644 (file)
--- a/rsync.h
+++ b/rsync.h
@@ -21,6 +21,9 @@
 #define RSYNC_RSH_ENV "RSYNC_RSH"
 
 #define RSYNC_NAME "rsync"
+#define RSYNCD_CONF "/etc/rsyncd.conf"
+#define RSYNCD_LOG "/var/adm/rsyncd.log"
+
 #define BACKUP_SUFFIX "~"
 
 /* a non-zero CHAR_OFFSET makes the rolling sum stronger, but is
@@ -50,6 +53,8 @@
 #define CHUNK_SIZE (32*1024)
 #define MAX_MAP_SIZE (4*1024*1024)
 
+#define MAX_ARGS 100
+
 #define BLOCKING_TIMEOUT 10
 
 #define FERROR 1
 #include <grp.h>
 
 #include <stdarg.h>
+#include <netinet/in.h>
+#include <arpa/inet.h>
+#include <netdb.h>
 
 #ifndef S_IFLNK
 #define S_IFLNK  0120000
 #define S_ISLNK(mode) (((mode) & S_IFLNK) == S_IFLNK)
 #endif
 
+#define BOOL int
+
 #ifndef uchar
 #define uchar unsigned char
 #endif