Chromium Code Reviews| Index: core/include/fxcodec/fx_codec_flate.h |
| diff --git a/core/include/fxcodec/fx_codec_flate.h b/core/include/fxcodec/fx_codec_flate.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..ce1c911eeaeec21eb13d48655d75d3f64ef5cddc |
| --- /dev/null |
| +++ b/core/include/fxcodec/fx_codec_flate.h |
| @@ -0,0 +1,26 @@ |
| +// Copyright 2014 PDFium Authors. All rights reserved. |
|
Lei Zhang
2015/07/14 23:17:46
2015
|
| +// 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 |
| + |
| +#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 |