1171840Sdanger/*- 2171840Sdanger * Copyright (c) 2003-2006, Maxime Henrion <mux@FreeBSD.org> 3171840Sdanger * All rights reserved. 4171840Sdanger * 5171840Sdanger * Redistribution and use in source and binary forms, with or without 6171840Sdanger * modification, are permitted provided that the following conditions 7171840Sdanger * are met: 8171840Sdanger * 1. Redistributions of source code must retain the above copyright 9171840Sdanger * notice, this list of conditions and the following disclaimer. 10171840Sdanger * 2. Redistributions in binary form must reproduce the above copyright 11171840Sdanger * notice, this list of conditions and the following disclaimer in the 12171840Sdanger * documentation and/or other materials provided with the distribution. 13171840Sdanger * 14171840Sdanger * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15171840Sdanger * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16171840Sdanger * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17171840Sdanger * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18171840Sdanger * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19171840Sdanger * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20171840Sdanger * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21171840Sdanger * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22171840Sdanger * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23171840Sdanger * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24171840Sdanger * SUCH DAMAGE. 25171840Sdanger * 26171840Sdanger * $FreeBSD$ 27171840Sdanger */ 28171840Sdanger#ifndef _DIFF_H_ 29171840Sdanger#define _DIFF_H_ 30171840Sdanger 31171840Sdangerstruct stream; 32171840Sdangerstruct keyword; 33171840Sdangerstruct file_update; 34171840Sdanger 35171840Sdanger/* Description of an RCS delta. */ 36171840Sdangerstruct diffinfo { 37171840Sdanger char *di_rcsfile; /* RCS filename */ 38171840Sdanger char *di_cvsroot; /* CVS root prefix */ 39171840Sdanger char *di_revnum; /* Revision number */ 40171840Sdanger char *di_revdate; /* Revision date */ 41171840Sdanger char *di_author; /* Author of the delta */ 42171840Sdanger char *di_tag; /* CVS tag, if any */ 43171840Sdanger char *di_state; /* State of the branch */ 44171840Sdanger int di_expand; /* CVS expansion mode */ 45171840Sdanger}; 46171840Sdanger 47171840Sdangerint diff_apply(struct stream *, struct stream *, struct stream *, 48171840Sdanger struct keyword *, struct diffinfo *, int); 49171840Sdangerint diff_reverse(struct stream *, struct stream *, 50171840Sdanger struct stream *, struct keyword *, struct diffinfo *); 51171840Sdanger 52171840Sdanger#endif /* !_DIFF_H_ */ 53171840Sdanger