summaryrefslogtreecommitdiffstats
path: root/patchlib/bspatch.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2013-01-11 02:25:40 +0100
committerPetr Mrázek <peterix@gmail.com>2013-01-11 02:25:40 +0100
commitb1d00fce8da901b31fa52ea59b4bc3c8edb9d9cc (patch)
treef7c909b4080e6d1868e601609741450330dc9a1e /patchlib/bspatch.h
parentd6d5c86a736537828a59ddc6389d5d0490942f8c (diff)
downloadMultiMC-b1d00fce8da901b31fa52ea59b4bc3c8edb9d9cc.tar
MultiMC-b1d00fce8da901b31fa52ea59b4bc3c8edb9d9cc.tar.gz
MultiMC-b1d00fce8da901b31fa52ea59b4bc3c8edb9d9cc.tar.lz
MultiMC-b1d00fce8da901b31fa52ea59b4bc3c8edb9d9cc.tar.xz
MultiMC-b1d00fce8da901b31fa52ea59b4bc3c8edb9d9cc.zip
CMake build system, big pile of libs: bspatch, quazip, java, the launcher
Diffstat (limited to 'patchlib/bspatch.h')
-rw-r--r--patchlib/bspatch.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/patchlib/bspatch.h b/patchlib/bspatch.h
new file mode 100644
index 00000000..efb83ee5
--- /dev/null
+++ b/patchlib/bspatch.h
@@ -0,0 +1,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