diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-07-14 16:43:54 -0700 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-07-14 16:43:54 -0700 |
commit | b2552025f977873cc96bdfd7144329623159ad33 (patch) | |
tree | 34a5d912e4886e2141f2aecd23b6ec972ecaf85e /core/include/fxcodec | |
parent | a4755c6c899c6d29b01b1a0a58dac20b65d361dc (diff) | |
download | pdfium-b2552025f977873cc96bdfd7144329623159ad33.tar.xz |
Merge to XFA: Move FPDFAPI_FlateInit() prototype and friends to .h file
(cherry picked from commit dacc22cdfea727a04bce086d9bfec9a4d1a29bd4)
Orignal Review URL: https://codereview.chromium.org/1240713004 .
TBR=thestig@chromium.org
Review URL: https://codereview.chromium.org/1230373003 .
Diffstat (limited to 'core/include/fxcodec')
-rw-r--r-- | core/include/fxcodec/fx_codec_flate.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/core/include/fxcodec/fx_codec_flate.h b/core/include/fxcodec/fx_codec_flate.h new file mode 100644 index 0000000000..8495a37496 --- /dev/null +++ b/core/include/fxcodec/fx_codec_flate.h @@ -0,0 +1,26 @@ +// 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 + +#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 |