librsync
2.3.1
src
emit.h
Go to the documentation of this file.
1
/*= -*- c-basic-offset: 4; indent-tabs-mode: nil; -*-
2
*
3
* librsync -- dynamic caching and delta update in HTTP
4
*
5
* Copyright (C) 2000, 2001 by Martin Pool <mbp@sourcefrog.net>
6
*
7
* This program is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU Lesser General Public License as published by
9
* the Free Software Foundation; either version 2.1 of the License, or
10
* (at your option) any later version.
11
*
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU Lesser General Public License for more details.
16
*
17
* You should have received a copy of the GNU Lesser General Public License
18
* along with this program; if not, write to the Free Software
19
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20
*/
21
22
/** \file emit.h
23
* How to emit commands to the client. */
24
25
void
rs_emit_delta_header
(
rs_job_t
*);
26
void
rs_emit_literal_cmd
(
rs_job_t
*,
int
len);
27
void
rs_emit_end_cmd
(
rs_job_t
*);
28
void
rs_emit_copy_cmd
(
rs_job_t
*job, rs_long_t where, rs_long_t len);
rs_emit_end_cmd
void rs_emit_end_cmd(rs_job_t *)
Write an END command.
Definition:
emit.c:123
rs_emit_literal_cmd
void rs_emit_literal_cmd(rs_job_t *, int len)
Write a LITERAL command.
Definition:
emit.c:47
rs_job
The contents of this structure are private.
Definition:
job.h:26
rs_emit_copy_cmd
void rs_emit_copy_cmd(rs_job_t *job, rs_long_t where, rs_long_t len)
Write a COPY command for given offset and length.
Definition:
emit.c:80
rs_emit_delta_header
void rs_emit_delta_header(rs_job_t *)
Write the magic for the start of a delta.
Definition:
emit.c:40
Generated on Tue Aug 4 2020 00:00:00 for librsync by
1.8.18