home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD1.iso / Cruncher / XPK_D310.LZX / xpk_Develop / Include / ASM / xpk / xpksub.i < prev   
Encoding:
Text File  |  1996-10-19  |  3.0 KB  |  82 lines

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