home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 4 / Amiga Tools 4.iso / tools / internet-tools / connect-line / cl / devkit / c / include / packer.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-12  |  1.3 KB  |  50 lines

  1. #ifndef _CL_PACKER_H
  2. #define _CL_PACKER_H
  3.  
  4. //
  5. //    cl/packer.h
  6. //  -----------
  7. //
  8. //  definitions for netio packer preferences
  9. //
  10.  
  11. #include <cl/cl_prefs.h>
  12. #include <cl/cl_mui.h>
  13.  
  14. #define PACKER_PREFSID MAKE_ID('O','P','A','C')
  15. #define PACKER_PREFSSUB (TAGT_NOL|765)
  16.  
  17. //
  18. // Substitutors:
  19. //
  20. //  %a archive name
  21. //  %A archive name without extension
  22. //  %n name (or list of names) of files to add to or extract from the archive
  23. //  %u unique filename (unpack only)
  24. //  %d destination directory (unpack only, set to pr_CurrentDir)
  25. //
  26. //
  27. //    ID-String works as follows: Entries are seperated by ","
  28. //    ?          matches any char
  29. //  'a'      matches given character (or sequence of)
  30. //  "a"         dito, but case insensitve
  31. //  $hh         matches character (hex)
  32. //  num         matches character (dec)
  33.  
  34.  
  35. typedef struct clpacker_prefs {
  36.     char     cmd_pack[ 256 ];
  37.     char    cmd_unpack_all[ 256 ];
  38.     char    def_extension[ 16 ];    // default extension of archive files
  39.     UBYTE    flg_archive;            // archive files can contain more than one file
  40.     UBYTE    flg_reserved[ 3 ];
  41.     ULONG    stack;
  42.     UWORD    errc_pack,                // Error return code level
  43.             errc_unpack_all;
  44.     char    id[ 256 ];                // ID-String to recognize packer
  45.     char    cmd_test[ 256 ];        // Command to test archive
  46.     char    testfailpattern[ 256 ];    // Output pattern to Match for failed archive
  47. } clpacker_prefs;
  48.  
  49. #endif
  50.