Files
harbour-core/contrib/hbmzip
Przemysław Czerpak 8b963cf79d 2013-06-04 14:20 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* contrib/gtqtc/gtqtc1.cpp
    * added workaround for missing MT synchronization in QT for XLIB
      QT was designed to use screen widgets only in main thread so
      it's only workaround which helps but I cannot guaranti

  * contrib/hbmzip/mzip.c
    * workaround for wrong st_mtime type in struct stat on android

  * src/rtl/hbsocket.c
    * do not check if IPPROTO_IP is defined, on some platforms like
      android it's only enum type. Warning if it exploits some problems
      on some seldom used platforms/compilers then please report it.

  * src/vm/hvm.c
    * minor

  * package/mpkg_ver.sh
    * do not use bash extensions

  * package/harbour-wce.spec.in
  * package/harbour-win.spec.in
  * package/harbour.spec
  * package/mpkg_rpm.sh
  * package/mpkg_rpm_wce.sh
  * package/mpkg_rpm_win.sh
    * removed bash from dependencies list
2013-06-04 14:20:50 +02:00
..


This folder contains compression related files including:
 * zip file support based on minizip library (http://www.winimage.com/zLibDll/minizip.html)
   including:
   * wrapper functions for minizip
   * some additionl functions to provide a higher level API for zip files


Harbour functions to mange ZIP files:
=====================================

hb_zipOpen( cFileName, [ iMode = HB_ZIP_CREATE ],
            [ @cGlobalComment ] ) --> hZip
hb_zipClose( hZip, [ cGlobalComment ] ) --> nError
hb_zipFileCreate( hZip, cZipName, tDateTime, cTime,
                  nInternalAttr, nExternalAttr,
                  [ nMethod = HB_ZLIB_METHOD_DEFLATE ],
                  [ nLevel = HB_ZLIB_COMPRESSION_DEFAULT ],
                  [ cPassword, ulFileCRC32 ], [ cComment ] ) --> nError
hb_zipFileWrite( hZip, cData [, nLen ] ) --> nError
hb_zipFileClose( hZip ) --> nError
hb_zipStoreFile( hZip, cFileName, [ cZipName ], ;
                 [ cPassword ], [ cComment ] ) --> nError
hb_zipStoreFileHandle( hZip, fhnd, cZipName, ;
                 [ cPassword ], [ cComment ] ) --> nError
hb_zipFileCRC32( cFileName ) --> nError


hb_unzipOpen( cFileName ) --> hUnzip
hb_unzipClose( hUnzip ) --> nError
hb_unzipGlobalInfo( hUnzip, @nEntries, @cGlobalComment ) --> nError
hb_unzipFileFirst( hUnzip ) --> nError
hb_unzipFileNext( hUnzip ) --> nError
hb_unzipFilePos( hUnzip ) --> nPosition
hb_unzipFileGoto( hUnzip, nPosition ) --> nError
hb_unzipFileInfo( hUnzip, @cZipName, @tDateTime, @cTime,
                  @nInternalAttr, @nExternalAttr,
                  @nMethod, @nSize, @nCompressedSize,
                  @lCrypted, @cComment ) --> nError
hb_unzipFileOpen( hUnzip, [ cPassword ] ) --> nError
hb_unzipFileRead( hUnzip, @cBuf [, nLen ] ) --> nRead
hb_unzipFileClose( hUnzip ) --> nError
hb_unzipExtractCurrentFile( hUnzip, [ cFileName ], [ cPassword ] ) --> nError
hb_unzipExtractCurrentFileToHandle( hZip, fhnd, [ cPassword ] ) --> nError


hb_zipDeleteFile( cZipFile, cFileMask ) --> nError