2002-12-30 17:07:23 +01:00
|
|
|
/*
|
|
|
|
* ngIRCd -- The Next Generation IRC Daemon
|
|
|
|
* Copyright (c)2001,2002 by Alexander Barton (alex@barton.de)
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
* Please read the file COPYING, README and AUTHORS for more information.
|
|
|
|
*/
|
|
|
|
|
2003-12-26 16:55:07 +01:00
|
|
|
#ifdef ZLIB
|
2002-12-30 17:07:23 +01:00
|
|
|
|
|
|
|
#ifndef __conn_zip_h__
|
|
|
|
#define __conn_zip_h__
|
|
|
|
|
2010-12-27 17:14:14 +01:00
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* Connection compression using ZLIB (header)
|
|
|
|
*/
|
2002-12-30 17:07:23 +01:00
|
|
|
|
2005-03-19 19:43:48 +01:00
|
|
|
GLOBAL bool Zip_InitConn PARAMS(( CONN_ID Idx ));
|
2002-12-30 17:07:23 +01:00
|
|
|
|
2009-04-12 01:09:42 +02:00
|
|
|
GLOBAL bool Zip_Buffer PARAMS(( CONN_ID Idx, const char *Data, size_t Len ));
|
2005-03-19 19:43:48 +01:00
|
|
|
GLOBAL bool Zip_Flush PARAMS(( CONN_ID Idx ));
|
|
|
|
GLOBAL bool Unzip_Buffer PARAMS(( CONN_ID Idx ));
|
2002-12-30 17:07:23 +01:00
|
|
|
|
2005-03-19 19:43:48 +01:00
|
|
|
GLOBAL long Zip_SendBytes PARAMS(( CONN_ID Idx ));
|
|
|
|
GLOBAL long Zip_RecvBytes PARAMS(( CONN_ID Idx ));
|
2002-12-30 17:07:23 +01:00
|
|
|
|
|
|
|
#endif /* __conn_zip_h__ */
|
|
|
|
|
2003-12-26 16:55:07 +01:00
|
|
|
#endif /* ZLIB */
|
2002-12-30 17:07:23 +01:00
|
|
|
|
|
|
|
/* -eof- */
|