mirror of
git://git.psyced.org/git/psyclpc
synced 2024-08-15 03:20:16 +00:00
30 lines
735 B
C
30 lines
735 B
C
#ifndef PKG_MCCP_H__
|
|
#define PKG_MCCP_H__ 1
|
|
|
|
#include "driver.h"
|
|
|
|
#ifdef USE_MCCP
|
|
|
|
#include <unistd.h>
|
|
|
|
#include "typedefs.h"
|
|
|
|
/* --- Macros --- */
|
|
|
|
#define COMPRESS_BUF_SIZE 8192
|
|
|
|
/* --- Prototypes --- */
|
|
|
|
extern void * zlib_alloc (void *opaque, unsigned int items, unsigned int size);
|
|
extern void zlib_free (void *opaque, void *address);
|
|
extern Bool start_compress (interactive_t * ip, unsigned char telopt);
|
|
extern Bool end_compress (interactive_t * ip, Bool force);
|
|
|
|
extern svalue_t * f_start_mccp_compress (svalue_t * sp);
|
|
extern svalue_t * f_end_mccp_compress (svalue_t * sp);
|
|
extern svalue_t * f_query_mccp (svalue_t * sp);
|
|
extern svalue_t * f_query_mccp_stats (svalue_t * sp);
|
|
|
|
#endif /* USE_MCCP */
|
|
|
|
#endif /* PKG_MCCP_H__ */
|