summaryrefslogtreecommitdiffstats
path: root/courgette/courgette.h
diff options
context:
space:
mode:
authorsra@google.com <sra@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-18 03:28:40 +0000
committersra@google.com <sra@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-18 03:28:40 +0000
commit54f1b829fe53c48b82440e7c8482e2b6ca397995 (patch)
tree5600358a8d8fac77ea4a7730fca9c4b6cbe09108 /courgette/courgette.h
parent4efe77c3fd39df0dc03b0d73ca0ba24c6e66ff28 (diff)
downloadchromium_src-54f1b829fe53c48b82440e7c8482e2b6ca397995.zip
chromium_src-54f1b829fe53c48b82440e7c8482e2b6ca397995.tar.gz
chromium_src-54f1b829fe53c48b82440e7c8482e2b6ca397995.tar.bz2
Code changes to get the code to compile under GCC.
Courgette still only knows how to compress Windows x86 executables. But now you can compress them on linux. BUG=none TEST=none Review URL: http://codereview.chromium.org/149597 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21042 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'courgette/courgette.h')
-rw-r--r--courgette/courgette.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/courgette/courgette.h b/courgette/courgette.h
index 7375c10..521053e 100644
--- a/courgette/courgette.h
+++ b/courgette/courgette.h
@@ -5,6 +5,10 @@
#ifndef COURGETTE_COURGETTE_H_
#define COURGETTE_COURGETTE_H_
+#include <stddef.h> // Required to define size_t on GCC
+
+#include "base/file_path.h"
+
namespace courgette {
// Status codes for Courgette APIs.
@@ -44,8 +48,6 @@ enum Status {
C_DISASSEMBLY_FAILED = 25, //
C_ASSEMBLY_FAILED = 26, //
C_ADJUSTMENT_FAILED = 27, //
-
-
};
class SinkStream;
@@ -67,9 +69,10 @@ Status ApplyEnsemblePatch(SourceStream* old, SourceStream* patch,
// Returns C_OK unless something went wrong.
// This function first validates that the patch file has a proper header, so the
// function can be used to 'try' a patch.
-Status ApplyEnsemblePatch(const wchar_t* old_file_name,
- const wchar_t* patch_file_name,
- const wchar_t* new_file_name);
+
+Status ApplyEnsemblePatch(const FilePath::CharType* old_file_name,
+ const FilePath::CharType* patch_file_name,
+ const FilePath::CharType* new_file_name);
// Generates a patch that will transform the bytes in |old| into the bytes in
// |target|.