summaryrefslogtreecommitdiffstats
path: root/depends/patchlib/bspatch.h
blob: efb83ee54a357a370a7856c43285c96e47b35439 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef _BSPATCH_H
#define _BSPATCH_H

#ifdef __cplusplus
extern "C" {
#endif

enum BSPatchError
{
	ERR_CORRUPT_PATCH,
	ERR_OTHER,
	ERR_NONE,
};

/**
 * patch oldfile by using patchfile and write the output to newfile.
 *
 * Returns ERR_NONE if successful
 */
int bspatch(const char * oldfile, const char * newfile, const char * patchfile);

#ifdef __cplusplus
}
#endif


#endif