"Fossies" - the Fresh Open Source Software Archive

Member "opensips-3.0.1/modules/compression/gz_helpers.h" (16 Apr 2019, 1085 Bytes) of package /linux/misc/opensips-3.0.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "gz_helpers.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2  * Copyright (C) 2014 OpenSIPS Solutions
    3  *
    4  * This file is part of opensips, a free SIP server.
    5  *
    6  * opensips is free software; you can redistribute it and/or modify
    7  * it under the terms of the GNU General Public License as published by
    8  * the Free Software Foundation; either version 2 of the License, or
    9  * (at your option) any later version.
   10  *
   11  * opensips is distributed in the hope that it will be useful,
   12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
   13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   14  * GNU General Public License for more details.
   15  *
   16  * You should have received a copy of the GNU General Public License
   17  * along with this program; if not, write to the Free Software
   18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
   19  *
   20  */
   21 
   22 
   23 #ifndef GZ_HELPERS
   24 #define GZ_HELPERS
   25 
   26 #include "compression.h"
   27 
   28 int gzip_compress(unsigned char* in, unsigned long ilen, str* out, unsigned long* olen, int level);
   29 int gzip_uncompress(unsigned char* in, unsigned long ilen, str* out, unsigned long* olen);
   30 #endif