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