1184257Slulf/*-
2186743Slulf * Copyright (c) 2008-2009, Ulf Lilleengen <lulf@FreeBSD.org>
3184257Slulf * All rights reserved.
4184257Slulf *
5184257Slulf * Redistribution and use in source and binary forms, with or without
6184257Slulf * modification, are permitted provided that the following conditions
7184257Slulf * are met:
8184257Slulf * 1. Redistributions of source code must retain the above copyright
9184257Slulf *    notice, this list of conditions and the following disclaimer.
10184257Slulf * 2. Redistributions in binary form must reproduce the above copyright
11184257Slulf *    notice, this list of conditions and the following disclaimer in the
12184257Slulf *    documentation and/or other materials provided with the distribution.
13184257Slulf *
14184257Slulf * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15184257Slulf * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16184257Slulf * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17184257Slulf * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18184257Slulf * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19184257Slulf * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20184257Slulf * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21184257Slulf * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22184257Slulf * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23184257Slulf * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24184257Slulf * SUCH DAMAGE.
25184257Slulf *
26184257Slulf * $FreeBSD$
27184257Slulf */
28184257Slulf
29184257Slulf#ifndef _RSYNCFILE_H_
30184257Slulf#define _RSYNCFILE_H_
31184257Slulf
32184257Slulfstruct rsyncfile;
33185134Slulfstruct rsyncfile	*rsync_open(char *, size_t, int);
34185134Slulfint			 rsync_nextblock(struct rsyncfile *);
35185134Slulfchar			*rsync_rsum(struct rsyncfile *);
36185134Slulfchar			*rsync_blockmd5(struct rsyncfile *);
37185134Slulfint			 rsync_close(struct rsyncfile *);
38185134Slulfsize_t			 rsync_blocksize(struct rsyncfile *);
39185134Slulfsize_t			rsync_filesize(struct rsyncfile *);
40184257Slulf
41184257Slulf#endif /* !_RSYNCFILE_H_ */
42