Blame bsdiff/bspatch.h

rpm-build 0fba15
/*-
rpm-build 0fba15
 * Copyright 2003-2005 Colin Percival
rpm-build 0fba15
 * Copyright 2012 Matthew Endsley
rpm-build 0fba15
 * All rights reserved
rpm-build 0fba15
 *
rpm-build 0fba15
 * Redistribution and use in source and binary forms, with or without
rpm-build 0fba15
 * modification, are permitted providing that the following conditions 
rpm-build 0fba15
 * are met:
rpm-build 0fba15
 * 1. Redistributions of source code must retain the above copyright
rpm-build 0fba15
 *    notice, this list of conditions and the following disclaimer.
rpm-build 0fba15
 * 2. Redistributions in binary form must reproduce the above copyright
rpm-build 0fba15
 *    notice, this list of conditions and the following disclaimer in the
rpm-build 0fba15
 *    documentation and/or other materials provided with the distribution.
rpm-build 0fba15
 *
rpm-build 0fba15
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
rpm-build 0fba15
 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
rpm-build 0fba15
 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
rpm-build 0fba15
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
rpm-build 0fba15
 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
rpm-build 0fba15
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
rpm-build 0fba15
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
rpm-build 0fba15
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
rpm-build 0fba15
 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
rpm-build 0fba15
 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
rpm-build 0fba15
 * POSSIBILITY OF SUCH DAMAGE.
rpm-build 0fba15
 */
rpm-build 0fba15
rpm-build 0fba15
#ifndef BSPATCH_H
rpm-build 0fba15
# define BSPATCH_H
rpm-build 0fba15
rpm-build 0fba15
# include <stdint.h>
rpm-build 0fba15
rpm-build 0fba15
struct bspatch_stream
rpm-build 0fba15
{
rpm-build 0fba15
	void* opaque;
rpm-build 0fba15
	int (*read)(const struct bspatch_stream* stream, void* buffer, int length);
rpm-build 0fba15
};
rpm-build 0fba15
rpm-build 0fba15
int bspatch(const uint8_t* old, int64_t oldsize, uint8_t* new, int64_t newsize, struct bspatch_stream* stream);
rpm-build 0fba15
rpm-build 0fba15
#endif
rpm-build 0fba15