If the file is not a local file, then we pass it on to HTFTP in case it can be reached by FTP. However, as this is very time consuming when requesting a local file that actually doesn't exist, this redirection will be disabled in the next major release, www-bug@info.cern.ch June 1994.
Note: All functions that deal with directory listings etc. have been moved to HTDirBrw Module.
#ifndef HTFILE_H #define HTFILE_H #include "HTFormat.h" #include "HTAccess.h" #include "HTML.h" /* SCW */ #include "HTDirBrw.h" #ifdef SHORT_NAMES #define HTGetCoD HTGetContentDescription #define HTSplFiN HTSplitFilename #endif /*SHORT_NAMES*/
PUBLIC int HTSplitFilename PARAMS((char * s_str, char ** s_arr));
PUBLIC HTContentDescription * HTGetContentDescription PARAMS((char ** actual, int n)); #define MULTI_SUFFIX ".multi" /* Extension for scanning formats */ #define MAX_SUFF 15 /* Maximum number of suffixes for a file */
extern char * HTLocalName PARAMS((CONST char * name));
extern char * WWW_nameOfFile PARAMS((const char * name));
extern char * HTCacheFileName PARAMS((CONST char * name));
/* ** Example: HTSetSuffix(".ps", "application/postscript", "8bit", NULL, 1.0); */ PUBLIC void HTSetSuffix PARAMS((CONST char * suffix, CONST char * representation, CONST char * encoding, CONST char * language, float quality)); PUBLIC void HTAddType PARAMS((CONST char * suffix, CONST char * representation, CONST char * encoding, float quality)); PUBLIC void HTAddEncoding PARAMS((CONST char * suffix, CONST char * encoding, float quality)); PUBLIC void HTAddLanguage PARAMS((CONST char * suffix, CONST char * language, float quality));
extern HTFormat HTFileFormat PARAMS(( CONST char * filename, HTAtom ** pEncoding, HTAtom ** pLanguage));
extern float HTFileValue PARAMS(( CONST char * filename));
extern BOOL HTEditable PARAMS((CONST char * filename));
extern CONST char * HTFileSuffix PARAMS(( HTAtom* rep));
GLOBALREF HTProtocol HTFTP, HTFile; #endif /* HTFILE_H */end of HTFile