pkg-mccp.h

ldmud-3.3.719/src/pkg-mccp.h · 735 B

From the archive ldmud-3.3.719.tar.gz

Download the archive   « Back to the archive contents

#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__ */

Site Stats

Snippets: 1791
Codebases: 571