.\" 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_COMP_INIT" "" "06 October 2005" "" "" .SH NAME z_comp_init \- initialize a previously-allocated compressor. .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int z_comp_init (void * \fIarg\fB, unsigned char * \fIoptions\fB, int \fIopt_len\fB, int \fIunit\fB, int \fIhdrlen\fB, int \fIdebug\fB); \fR .SH "ARGUMENTS" .TP \fB\fIarg\fB\fR pointer to the private state for the compressor .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\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 compressor was allocated. The compressor history is reset. Returns 0 for failure (CCP options don't match) or 1 for success.