# zlib.decls -- # # This file contains the declarations for all supported public # functions that are exported by the zlib Tcl library via the # stubs table. # This file is used to generate the zlibDecls.h and zlibStub.c files. # # # Copyright (c) 1998-1999 by Scriptics Corporation. # Copyright (c) 2001, 2002 by Kevin B. Kenny. All rights reserved. # Copyright (c) 2005 by Pascal Scheffers. # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # # $Id$ # # Branched from: # RCS: @(#) Id: tcl.decls,v 1.103 2004/03/17 18:14:12 das Exp # for the zlib package. library zlib # Define the zlib interface, no sub interfaces. interface zlib #hooks {} # Declare each of the functions in the public dict interface. Note that # the an index should never be reused for a different function in order # to preserve backwards compatibility. # ZLIB - TIP#234 declare 0 generic { int Zlib_Deflate (Tcl_Interp *interp, int format, Tcl_Obj *data, int level) } declare 1 generic { int Zlib_Inflate (Tcl_Interp *interp, int format, Tcl_Obj *data, int buffersize) } declare 2 generic { unsigned int Zlib_CRC32 (unsigned int crc, const char *buf, unsigned int len) } declare 3 generic { unsigned int Zlib_Adler32 (unsigned int adler, const char *buf, unsigned int len) } declare 4 generic { int Zlib_StreamInit (Tcl_Interp *interp, int mode, int format, int level, ZlibHandle *zshandle) } declare 5 generic { Tcl_Obj * Zlib_StreamGetCommandName (ZlibHandle zshandle) } declare 6 generic { int Zlib_StreamEof (ZlibHandle zshandle) } declare 7 generic { int Zlib_StreamAdler32 (ZlibHandle zshandle) } declare 8 generic { int Zlib_StreamPut (ZlibHandle zshandle, Tcl_Obj *data, int flush) } declare 9 generic { int Zlib_StreamGet (ZlibHandle zshandle, Tcl_Obj *data, int count) } declare 10 generic { int Zlib_StreamClose (ZlibHandle zshandle) } declare 11 generic { int Zlib_StreamReset (ZlibHandle zshandle) }