.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "Z_DECOMP_INIT" "" "06 October 2005" "" "" .SH NAME z_decomp_init \- initialize a previously-allocated decompressor. .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int z_decomp_init (void * \fIarg\fB, unsigned char * \fIoptions\fB, int \fIopt_len\fB, int \fIunit\fB, int \fIhdrlen\fB, int \fImru\fB, int \fIdebug\fB); \fR .SH "ARGUMENTS" .TP \fB\fIarg\fB\fR pointer to the private state for the decompressor .TP \fB\fIoptions\fB\fR pointer to the CCP option data describing the compression that was negotiated with the peer .TP \fB\fIopt_len\fB\fR length of the CCP option data at \fIoptions\fR .TP \fB\fIunit\fB\fR PPP unit number for diagnostic messages .TP \fB\fIhdrlen\fB\fR ignored (present for backwards compatibility) .TP \fB\fImru\fB\fR maximum length of decompressed packets .TP \fB\fIdebug\fB\fR debug flag; if non-zero, debug messages are printed. .SH "DESCRIPTION" .PP The CCP options described by \fIoptions\fR must match the options specified when the decompressor was allocated. The decompressor history is reset. Returns 0 for failure (CCP options don't match) or 1 for success.