1#ifndef PATCH_H
2#define PATCH_H
3
4#include "common.h"
5
6struct Patch {
7 int patchfd;
8
9 size_t (*outputSize)(struct Patch* patch, size_t inSize);
10 int (*applyPatch)(struct Patch* patch, void* out, size_t outSize);
11};
12
13int loadPatch(int patchfd, struct Patch* patch);
14
15#endif