00001 /*= -*- c-basic-offset: 4; indent-tabs-mode: nil; -*-00002 *00003 * librsync -- dynamic caching and delta update in HTTP00004 *00005 * Copyright (C) 2000, 2001 by Martin Pool <mbp@sourcefrog.net>00006 *00007 * This program is free software; you can redistribute it and/or modify00008 * it under the terms of the GNU Lesser General Public License as published by00009 * the Free Software Foundation; either version 2.1 of the License, or00010 * (at your option) any later version.00011 *00012 * This program is distributed in the hope that it will be useful,00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the00015 * GNU Lesser General Public License for more details.00016 *00017 * You should have received a copy of the GNU Lesser General Public License00018 * along with this program; if not, write to the Free Software00019 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.00020 */00021
00022 /** \file emit.h How to emit commands to the client. */00023
00024 voidrs_emit_delta_header(rs_job_t *);
00025 voidrs_emit_literal_cmd(rs_job_t *, int len);
00026 voidrs_emit_end_cmd(rs_job_t *);
00027 voidrs_emit_copy_cmd(rs_job_t *job, rs_long_t where, rs_long_t len);