1/*
2Copyright 2013 Google Inc. All Rights Reserved.
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8    http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15
16Author: lode.vandevenne@gmail.com (Lode Vandevenne)
17Author: jyrki.alakuijala@gmail.com (Jyrki Alakuijala)
18*/
19
20#ifndef ZOPFLI_ZLIB_H_
21#define ZOPFLI_ZLIB_H_
22
23/*
24Functions to compress according to the Zlib specification.
25*/
26
27#include "zopfli.h"
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
33/*
34Compresses according to the zlib specification and append the compressed
35result to the output.
36
37options: global program options
38out: pointer to the dynamic output array to which the result is appended. Must
39  be freed after use.
40outsize: pointer to the dynamic output array size.
41*/
42void ZopfliZlibCompress(const ZopfliOptions* options,
43                        const unsigned char* in, size_t insize,
44                        unsigned char** out, size_t* outsize);
45
46#ifdef __cplusplus
47}  // extern "C"
48#endif
49
50#endif  /* ZOPFLI_ZLIB_H_ */
51