Changeset View
Changeset View
Standalone View
Standalone View
extern.h
Show All 11 Lines | |||||
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||||
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||||
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||||
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||||
*/ | */ | ||||
#ifndef EXTERN_H | #ifndef EXTERN_H | ||||
#define EXTERN_H | #define EXTERN_H | ||||
#include <sys/types.h> | |||||
#include <libcasper.h> | |||||
#include <casper/cap_fileargs.h> | |||||
/* | /* | ||||
* This is the rsync protocol version that we support. | * This is the rsync protocol version that we support. | ||||
*/ | */ | ||||
#define RSYNC_PROTOCOL (27) | #define RSYNC_PROTOCOL (27) | ||||
/* | /* | ||||
* The default service (see services(5)) for rsync. | * The default service (see services(5)) for rsync. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 239 Lines • ▼ Show 20 Lines | void rsync_errx(struct sess *, const char *, | ||||
__attribute__((format(printf, 4, 5))); | __attribute__((format(printf, 4, 5))); | ||||
void rsync_errx1(struct sess *, const char *, | void rsync_errx1(struct sess *, const char *, | ||||
size_t, const char *, ...) | size_t, const char *, ...) | ||||
__attribute__((format(printf, 4, 5))); | __attribute__((format(printf, 4, 5))); | ||||
int flist_del(struct sess *, int, | int flist_del(struct sess *, int, | ||||
const struct flist *, size_t); | const struct flist *, size_t); | ||||
int flist_gen(struct sess *, size_t, char **, | int flist_gen(struct sess *, size_t, char **, | ||||
struct flist **, size_t *); | struct flist **, size_t *, fileargs_t *); | ||||
int flist_gen_local(struct sess *, const char *, | int flist_gen_local(struct sess *, const char *, | ||||
struct flist **, size_t *); | struct flist **, size_t *); | ||||
void flist_free(struct flist *, size_t); | void flist_free(struct flist *, size_t); | ||||
int flist_recv(struct sess *, int, | int flist_recv(struct sess *, int, | ||||
struct flist **, size_t *); | struct flist **, size_t *); | ||||
int flist_send(struct sess *, int, int, | int flist_send(struct sess *, int, int, | ||||
const struct flist *, size_t); | const struct flist *, size_t); | ||||
int flist_gen_dels(struct sess *, const char *, | int flist_gen_dels(struct sess *, const char *, | ||||
▲ Show 20 Lines • Show All 105 Lines • Show Last 20 Lines |