summaryrefslogtreecommitdiff
path: root/core/fxcodec/include/fx_codec_flate.h
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-04-06 12:30:31 -0700
committerCommit bot <commit-bot@chromium.org>2016-04-06 12:30:32 -0700
commit86e5474dc4ff7fe0d0850f26f7320e1e57f3fd21 (patch)
tree38e8d16226cbf0e58c6c242c8954e8e45a4819cd /core/fxcodec/include/fx_codec_flate.h
parent088632c37b21cbf3a4668b6094bd04ede021f15e (diff)
downloadpdfium-86e5474dc4ff7fe0d0850f26f7320e1e57f3fd21.tar.xz
Move include/fxcodec to fxcodec/include
Review URL: https://codereview.chromium.org/1864153002
Diffstat (limited to 'core/fxcodec/include/fx_codec_flate.h')
-rw-r--r--core/fxcodec/include/fx_codec_flate.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/core/fxcodec/include/fx_codec_flate.h b/core/fxcodec/include/fx_codec_flate.h
new file mode 100644
index 0000000000..83e9281b48
--- /dev/null
+++ b/core/fxcodec/include/fx_codec_flate.h
@@ -0,0 +1,33 @@
+// Copyright 2015 PDFium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
+
+#ifndef CORE_FXCODEC_INCLUDE_FX_CODEC_FLATE_H_
+#define CORE_FXCODEC_INCLUDE_FX_CODEC_FLATE_H_
+
+#include "third_party/zlib_v128/zlib.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+// Note: Some of these return Z_* status codes from zlib.h.
+void* FPDFAPI_FlateInit(void* (*alloc_func)(void*, unsigned int, unsigned int),
+ void (*free_func)(void*, void*));
+void FPDFAPI_FlateInput(void* context,
+ const unsigned char* src_buf,
+ unsigned int src_size);
+int FPDFAPI_FlateOutput(void* context,
+ unsigned char* dest_buf,
+ unsigned int dest_size);
+int FPDFAPI_FlateGetAvailIn(void* context);
+int FPDFAPI_FlateGetAvailOut(void* context);
+void FPDFAPI_FlateEnd(void* context);
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
+
+#endif // CORE_FXCODEC_INCLUDE_FX_CODEC_FLATE_H_