-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmod_rsync.h.in
67 lines (54 loc) · 1.93 KB
/
mod_rsync.h.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*
* ProFTPD: mod_rsync
* Copyright (c) 2010-2016 TJ Saunders
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
*
* As a special exemption, TJ Saunders and other respective copyright holders
* give permission to link this program with OpenSSL, and distribute the
* resulting executable, without including the source code for OpenSSL in the
* source distribution.
*/
#ifndef MOD_RSYNC_H
#define MOD_RSYNC_H
#include "conf.h"
#include "privs.h"
#include "mod_sftp.h"
#ifdef HAVE_SYS_UIO_H
# include <sys/uio.h>
#endif
#include <zlib.h>
/* Define if you have mod_sftp support. */
#undef HAVE_SFTP
#define MOD_RSYNC_VERSION "mod_rsync/0.0"
/* Make sure the version of proftpd is as necessary. */
#if PROFTPD_VERSION_NUMBER < 0x0001030603
# error "ProFTPD 1.3.6rc3 or later required"
#endif
/* Define if you have the <endian.h> header file. */
#undef HAVE_ENDIAN_H
/* Define if you have the <machine/endian.h> header file. */
#undef HAVE_MACHINE_ENDIAN_H
/* The number of bytes in an int32. */
#undef SIZEOF_INT32_T
/* The number of bytes in an int64. */
#undef SIZEOF_INT64_T
/* Miscellaneous */
extern int rsync_logfd;
extern module rsync_module;
extern pool *rsync_pool;
extern unsigned long rsync_opts;
extern int (*rsync_write_data)(pool *, uint32_t, unsigned char *, uint32_t);
#endif