00001 /*= -*- c-basic-offset: 4; indent-tabs-mode: nil; -*- 00002 * 00003 * librsync -- library for network deltas 00004 * $Id: command.h,v 1.1.1.1 2002/01/25 22:15:09 kergoth Exp $ 00005 * 00006 * Copyright (C) 1999, 2000, 2001 by Martin Pool <mbp@samba.org> 00007 * Copyright (C) 1999 by Andrew Tridgell <tridge@samba.org> 00008 * 00009 * This program is free software; you can redistribute it and/or 00010 * modify it under the terms of the GNU Lesser General Public License 00011 * as published by the Free Software Foundation; either version 2.1 of 00012 * the License, or (at your option) any later version. 00013 * 00014 * This program is distributed in the hope that it will be useful, but 00015 * WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00017 * Lesser General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU Lesser General Public 00020 * License along with this program; if not, write to the Free Software 00021 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00022 */ 00023 00024 00025 /* 00026 * command.h -- Types of commands present in the encoding stream. 00027 * 00028 * The vague idea is that eventually this file will be more abstract 00029 * than protocol.h, but it's not clear that will ever be required. 00030 */ 00031 00032 00037 enum rs_op_kind { 00038 RS_KIND_END = 1000, 00039 RS_KIND_LITERAL, 00040 RS_KIND_SIGNATURE, 00041 RS_KIND_COPY, 00042 RS_KIND_CHECKSUM, 00043 RS_KIND_RESERVED, /* for future expansion */ 00044 00045 /* This one should never occur in file streams. It's an 00046 * internal marker for invalid commands. */ 00047 RS_KIND_INVALID 00048 }; 00049 00050 00051 typedef struct rs_op_kind_name { 00052 char const *name; 00053 enum rs_op_kind const kind; 00054 } rs_op_kind_name_t; 00055 00056 char const * rs_op_kind_name(enum rs_op_kind); 00057 00058
1.4.2