00001 /*= -*- c-basic-offset: 4; indent-tabs-mode: nil; -*-00002 *00003 * librsync -- the library for network deltas00004 *00005 * Copyright (C) 2000, 2001 by Martin Pool <mbp@sourcefrog.net>00006 *00007 * This program is free software; you can redistribute it and/or00008 * modify it under the terms of the GNU Lesser General Public License00009 * as published by the Free Software Foundation; either version 2.1 of00010 * the License, or (at your option) any later version.00011 *00012 * This program is distributed in the hope that it will be useful, but00013 * WITHOUT ANY WARRANTY; without even the implied warranty of00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU00015 * Lesser General Public License for more details.00016 *00017 * You should have received a copy of the GNU Lesser General Public00018 * License along with this program; if not, write to the Free Software00019 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.00020 */00021
00022 typedefstruct rs_filebufrs_filebuf_t;
00023
00024 rs_filebuf_t *rs_filebuf_new(FILE *f, size_t buf_len);
00025
00026 void rs_filebuf_free(rs_filebuf_t *fb);
00027
00028 rs_result rs_infilebuf_fill(rs_job_t *, rs_buffers_t *buf, void *fb);
00029
00030 rs_result rs_outfilebuf_drain(rs_job_t *, rs_buffers_t *, void *fb);