Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

stream.h

Go to the documentation of this file.
00001 /*= -*- c-basic-offset: 4; indent-tabs-mode: nil; -*-
00002  *
00003  * librsync -- library for network deltas
00004  * $Id: stream.h,v 1.1.1.1 2002/01/25 22:15:09 kergoth Exp $
00005  * 
00006  * Copyright (C) 2000, 2001 by Martin Pool <mbp@samba.org>
00007  * 
00008  * This program is free software; you can redistribute it and/or
00009  * modify it under the terms of the GNU Lesser General Public License
00010  * as published by the Free Software Foundation; either version 2.1 of
00011  * the License, or (at your option) any later version.
00012  * 
00013  * This program is distributed in the hope that it will be useful, but
00014  * WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016  * Lesser General Public License for more details.
00017  * 
00018  * You should have received a copy of the GNU Lesser General Public
00019  * License along with this program; if not, write to the Free Software
00020  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
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);

Generated on Sat Nov 5 16:15:37 2005 for OPIE by  doxygen 1.4.2