|
NAMETclZipfs_AppHook, Tclzipfs_Mount, TclZipfs_MountBuffer, Tclzipfs_Unmount - handle ZIP files as Tcl virtual filesystemsSYNOPSISint TclZipfs_AppHook(argcPtr, argvPtr) int Tclzipfs_Mount(interp, mountpoint, zipname, password) int TclZipfs_MountBuffer(interp, mountpoint, data, dataLen, copy) int Tclzipfs_Unmount(interp, mountpoint) ARGUMENTS
DESCRIPTIONTclZipfs_AppHook is a utility function to perform standard application initialization procedures, taking into account available ZIP archives as follows:
On Windows, TclZipfs_AppHook has a slightly different signature, since it uses WCHAR instead of char. As a result, it requires your application to be compiled with the UNICODE preprocessor symbol defined (e.g., via the -DUNICODE compiler flag). The result of TclZipfs_AppHook is a Tcl result code (e.g., TCL_OK when the function is successful). The function may modify the variables pointed to by argcPtr and argvPtr to remove arguments; the current implementation does not do so, but callers should not assume that this will be true in the future. Tclzipfs_Mount mounts the ZIP archive zipname on the mount point given in mountpoint using the optional ZIP password password. Errors during that process are reported in the interpreter interp. If mountpoint is a NULL pointer, information on all currently mounted ZIP file systems is written into interp's result as a sequence of mount points and ZIP file names. The result of this call is a standard Tcl result code. Tclzipfs_MountBuffer mounts the ZIP archive in the buffer pointed to by data on the mount point given in mountpoint. The ZIP archive is assumed to be not password protected. Errors during that process are reported in the interpreter interp. The copy argument determines whether the buffer is internally copied before mounting or not. The result of this call is a standard Tcl result code. Tclzipfs_Unmount undoes the effect of Tclzipfs_Mount, i.e., it unmounts the mounted ZIP file system that was mounted from zipname (at mountpoint). Errors are reported in the interpreter interp. The result of this call is a standard Tcl result code. TclZipfs_AppHook can not be used in stub-enabled extensions. SEE ALSOzipfs(n)KEYWORDScompress, filesystem, zip
Visit the GSP FreeBSD Man Page Interface. |