home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD1.iso / Cruncher / XPK416DV.LHA / xpk_Develop / Include / ASM / xpk / xpksub.i < prev   
Encoding:
Text File  |  1997-09-06  |  3.0 KB  |  80 lines

  1.     IFND    XPK_XPKSUB_I
  2. XPK_XPKSUB_I    SET    1
  3.  
  4. **
  5. **    $VER: xpk/xpksub.i 4.10 (05.04.97) by SDI
  6. **
  7. **    (C) Copyright 1991-1997 by 
  8. **          Urban Dominik Mueller, Bryan Ford,
  9. **          Christian Schneider, Christian von Roques
  10. **        Dirk Stöcker
  11. **        All Rights Reserved
  12. **
  13.  
  14.     IFND    XPK_XPK_I
  15.     INCLUDE "xpk/xpk.i"
  16.     ENDC
  17.  
  18. **************************************************************************
  19. *
  20. *        Sublibs return this structure to xpkmaster when asked nicely
  21. *
  22. *
  23.  
  24.  STRUCTURE XpkInfo,0
  25.     UWORD    xi_XpkInfoVersion ; /* Version number of this structure   */
  26.     UWORD    xi_LibVersion      ; /* The version of this sublibrary     */
  27.     UWORD    xi_MasterVersion  ; /* The required master lib version    */
  28.     UWORD    xi_ModesVersion    ; /* Longword align                     */
  29.     APTR    xi_Name        ; /* Brief name of the packer           */
  30.     APTR    xi_LongName    ; /* Full name of the packer            */
  31.     APTR    xi_Description    ; /* One line description of packer     */
  32.     LONG    xi_ID        ; /* ID the packer goes by (XPK format) */
  33.     LONG    xi_Flags    ; /* Defined below                      */
  34.     LONG    xi_MaxPkInChunk    ; /* Max input chunk size for packing   */
  35.     LONG    xi_MinPkInChunk    ; /* Min input chunk size for packing   */
  36.     LONG    xi_DefPkInChunk    ; /* Default packing chunk size         */
  37.     APTR    xi_PackMsg    ; /* Packing message, present tense     */
  38.     APTR    xi_UnpackMsg    ; /* Unpacking message, present tense   */
  39.     APTR    xi_PackedMsg    ; /* Packing message, past tense        */
  40.     APTR    xi_UnpackedMsg    ; /* Unpacking message, past tense      */
  41.     UWORD    xi_DefMode    ; /* Default mode number                */
  42.     UWORD    xi_Pad        ; /* for future use                     */
  43.     APTR    xi_Modes    ; /* Array of compression modes         */
  44.     STRUCT    xi_Reserved,6*4    ; /* Future expansion - set to zero     */
  45.     LABEL    xi_SIZEOF    ; /* Size of the *first* part only    */
  46.  
  47. * Defines for XpkInfo.Flags: see xpk.i, XPKIF_xxxxx
  48.  
  49. **************************************************************************
  50. *
  51. *                     The XpkSubParams structure
  52. *
  53. */
  54.  
  55.  STRUCTURE XpkSubParams,0
  56.     APTR    xsp_InBuf    ; /* The input data               */
  57.     ULONG    xsp_InLen    ; /* The number of bytes to pack  */
  58.     APTR    xsp_OutBuf    ; /* The output buffer            */
  59.     ULONG    xsp_OutBufLen    ; /* The length of the output buf */
  60.     ULONG    xsp_OutLen    ; /* Number of bytes written      */
  61.     ULONG    xsp_Flags    ; /* Flags for master/sub comm.   */
  62.     ULONG    xsp_Number    ; /* The number of this chunk     */
  63.     LONG    xsp_Mode    ; /* The packing mode to use      */
  64.     APTR    xsp_Password    ; /* The password to use          */
  65.     UWORD    xsp_LibVersion    ; /* SublibVersion used to pack   */
  66.     UWORD    xsp_Pad        ; /* Reserved; don't use          */
  67.     STRUCT    xsp_Arg,3*4    ; /* Reserved; don't use          */
  68.     STRUCT    xsp_Sub,4*4    ; /* Sublib private data          */
  69.     LABEL    xsp_SIZEOF
  70.  
  71.  
  72.  * xsp_LibVersion is the version number of the sublibrary used to pack
  73.  * this chunk. It can be used to create backwards compatible sublibraries
  74.  * with a totaly different fileformat.
  75.  
  76. XSF_STEPDOWN    EQU    1    ; /* May reduce pack eff. to save mem   */
  77. XSF_PREVCHUNK    EQU    2    ; /* Previous chunk available on unpack */
  78.  
  79.     ENDC
  80.