$treeview $search $mathjax $extrastylesheet
librsync
2.3.0
$projectbrief
|
$projectbrief
|
$searchbox |
00001 /*= -*- c-basic-offset: 4; indent-tabs-mode: nil; -*- 00002 * 00003 * librsync -- library for network deltas 00004 * 00005 * Copyright (C) 1999, 2000, 2001 by Martin Pool <mbp@sourcefrog.net> 00006 * Copyright (C) 1999 by Andrew Tridgell <tridge@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 /** \file command.h 00024 * Types of commands present in the encoding stream. 00025 * 00026 * The vague idea is that eventually this file will be more abstract than 00027 * protocol.h, but it's not clear that will ever be required. */ 00028 00029 /** Classes of operation that can be present. Each may have several different 00030 * possible representations. */ 00031 enum rs_op_kind { 00032 RS_KIND_END = 1000, 00033 RS_KIND_LITERAL, 00034 RS_KIND_SIGNATURE, 00035 RS_KIND_COPY, 00036 RS_KIND_CHECKSUM, 00037 RS_KIND_RESERVED, /* for future expansion */ 00038 00039 /* This one should never occur in file streams. It's an internal marker for 00040 invalid commands. */ 00041 RS_KIND_INVALID 00042 }; 00043 00044 typedef struct rs_op_kind_name { 00045 char const *name; 00046 enum rs_op_kind const kind; 00047 } rs_op_kind_name_t; 00048 00049 char const *rs_op_kind_name(enum rs_op_kind);