$treeview $search $mathjax $extrastylesheet
librsync
2.0.2
$projectbrief
|
$projectbrief
|
$searchbox |
00001 /*= -*- c-basic-offset: 4; indent-tabs-mode: nil; -*- 00002 * 00003 * librsync -- library for network deltas 00004 * 00005 * Copyright (C) 2000, 2001 by Martin Pool <mbp@sourcefrog.net> 00006 * 00007 * This program is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU Lesser General Public License 00009 * as published by the Free Software Foundation; either version 2.1 of 00010 * the License, or (at your option) any later version. 00011 * 00012 * This program is distributed in the hope that it will be useful, but 00013 * WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 * Lesser General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Lesser General Public 00018 * License along with this program; if not, write to the Free Software 00019 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00020 */ 00021 00022 /*= 00023 | Two wars in a lifetime bear hard on the little places. 00024 | In winter when storms come rushing out of the dark, 00025 | And the bay boils like a cauldron of sharks, 00026 | The old remember the trenches at Paschendale 00027 | And sons who died on the Burma Railway. 00028 */ 00029 00030 int rs_buffers_is_empty(rs_buffers_t *stream); 00031 int rs_buffers_copy(rs_buffers_t *stream, int len); 00032 00033 int rs_tube_catchup(rs_job_t *); 00034 void rs_tube_write(rs_job_t *, void const *buf, size_t len); 00035 void rs_tube_copy(rs_job_t *, int len); 00036 int rs_tube_is_idle(rs_job_t const *); 00037 void rs_check_tube(rs_job_t *); 00038 00039 void rs_buffers_check_exit(rs_buffers_t const *); 00040 00041 void rs_scoop_advance(rs_job_t *, size_t len); 00042 rs_result rs_scoop_readahead(rs_job_t *, size_t len, void **ptr); 00043 rs_result rs_scoop_read(rs_job_t *, size_t len, void **ptr); 00044 rs_result rs_scoop_read_rest(rs_job_t *, size_t *len, void **ptr); 00045 size_t rs_scoop_total_avail(rs_job_t *job); 00046 void rs_scoop_input(rs_job_t *job, size_t len);