summaryrefslogtreecommitdiff
path: root/rsync/stream.h
Unidiff
Diffstat (limited to 'rsync/stream.h') (more/less context) (ignore whitespace changes)
-rw-r--r--rsync/stream.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/rsync/stream.h b/rsync/stream.h
new file mode 100644
index 0000000..e2d0da8
--- a/dev/null
+++ b/rsync/stream.h
@@ -0,0 +1,46 @@
1/*= -*- c-basic-offset: 4; indent-tabs-mode: nil; -*-
2 *
3 * librsync -- library for network deltas
4 * $Id$
5 *
6 * Copyright (C) 2000, 2001 by Martin Pool <mbp@samba.org>
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public License
10 * as published by the Free Software Foundation; either version 2.1 of
11 * the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this program; if not, write to the Free Software
20 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 */
22
23 /* Two wars in a lifetime bear hard on the little places.
24 * In winter when storms come rushing out of the dark,
25 * And the bay boils like a cauldron of sharks,
26 * The old remember the trenches at Paschendale
27 * And sons who died on the Burma Railway. */
28
29
30int rs_buffers_is_empty(rs_buffers_t *stream);
31int rs_buffers_copy(rs_buffers_t *stream, int len);
32
33int rs_tube_catchup(rs_job_t *);
34void rs_tube_write(rs_job_t *, void const *buf, size_t len);
35void rs_tube_copy(rs_job_t *, int len);
36int rs_tube_is_idle(rs_job_t const *);
37void rs_check_tube(rs_job_t *);
38
39void rs_buffers_check_exit(rs_buffers_t const *);
40
41void rs_scoop_advance(rs_job_t *, size_t len);
42rs_result rs_scoop_readahead(rs_job_t *, size_t len, void **ptr);
43rs_result rs_scoop_read(rs_job_t *, size_t len, void **ptr);
44rs_result rs_scoop_read_rest(rs_job_t *, size_t *len, void **ptr);
45size_t rs_scoop_total_avail(rs_job_t *job);
46void rs_scoop_input(rs_job_t *job, size_t len);