add diff and patch functions for xdelta3

This commit is contained in:
josch
2014-11-04 11:02:33 +01:00
parent 3d56e7b9c3
commit f281b4233d
3 changed files with 143 additions and 1 deletions

27
utils/xdelta3.h Normal file
View File

@@ -0,0 +1,27 @@
/*
* Copyright (C) 2014 Johannes Schauer <j.schauer@email.de>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2, as published by
* the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along with
* this program; if not, write to the Free Software Foundation, Inc., 51
* Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/
#ifndef _MFSHELL_XDELTA3_H_
#define _MFSHELL_XDELTA3_H_
#include <stdio.h>
int xdelta3_diff(FILE *old, FILE *new, FILE *diff);
int xdelta3_patch(FILE *old, FILE *diff, FILE *new);
#endif