1 #pragma ident   "%Z%%M% %I%     %E% SMI"
   2 
   3 /****************************************************************************    
   4   Copyright (c) 1999,2000 WU-FTPD Development Group.  
   5   All rights reserved.
   6    
   7   Portions Copyright (c) 1980, 1985, 1988, 1989, 1990, 1991, 1993, 1994  
   8     The Regents of the University of California. 
   9   Portions Copyright (c) 1993, 1994 Washington University in Saint Louis.  
  10   Portions Copyright (c) 1996, 1998 Berkeley Software Design, Inc.  
  11   Portions Copyright (c) 1989 Massachusetts Institute of Technology.  
  12   Portions Copyright (c) 1998 Sendmail, Inc.  
  13   Portions Copyright (c) 1983, 1995, 1996, 1997 Eric P.  Allman.  
  14   Portions Copyright (c) 1997 by Stan Barber.  
  15   Portions Copyright (c) 1997 by Kent Landfield.  
  16   Portions Copyright (c) 1991, 1992, 1993, 1994, 1995, 1996, 1997  
  17     Free Software Foundation, Inc.    
  18    
  19   Use and distribution of this software and its source code are governed   
  20   by the terms and conditions of the WU-FTPD Software License ("LICENSE").  
  21    
  22   If you did not receive a copy of the license, it may be obtained online  
  23   at http://www.wu-ftpd.org/license.html.  
  24    
  25   $Id: conversions.h,v 1.5 2000/07/01 18:17:38 wuftpd Exp $  
  26    
  27 ****************************************************************************/
  28 
  29 #define T_REG       1           /* regular files OK */
  30 #define T_DIR       2           /* directories OK */
  31 #define T_ASCII     4           /* ASCII transfers OK */
  32 
  33 struct convert {
  34     struct convert *next;
  35     char *stripprefix;          /* prefix to strip from real file */
  36     char *stripfix;             /* postfix to strip from real file */
  37     char *prefix;               /* prefix to add to real file */
  38     char *postfix;              /* postfix to add to real file */
  39     char *external_cmd;         /* command to do conversion */
  40     int types;                  /* types: {file,directory} OK to convert */
  41     int options;                /* for logging: which conversion(s) used */
  42     char *name;                 /* description of conversion */
  43 };
  44 
  45 extern struct convert *cvtptr;