/* ** (c) COPYRIGHT CERN 1994. ** Please first read the full copyright statement in the file COPYRIGH. */These are routines for local file access used by WWW browsers and servers.
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.
This module is implemented by HTFile.c, and it is a part of the Library of Common Code.
#ifndef HTFILE_H #define HTFILE_H #include "HTFormat.h" #include "HTAccess.h" #include "HTML.h" /* SCW */ #include "HTDirBrw.h"
extern int HTSplitFilename PARAMS((char * s_str, char ** s_arr));
extern 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);
*/
extern void HTSetSuffix PARAMS((CONST char * suffix,
CONST char * representation,
CONST char * encoding,
CONST char * language,
double quality));
extern void HTAddType PARAMS((CONST char * suffix,
CONST char * representation,
CONST char * encoding,
double quality));
extern void HTAddEncoding PARAMS((CONST char * suffix,
CONST char * encoding,
double quality));
extern void HTAddLanguage PARAMS((CONST char * suffix,
CONST char * language,
double quality));
extern void HTFile_deleteSuffixes NOPARAMS;
extern HTFormat HTFileFormat PARAMS(( CONST char * filename, HTAtom ** pEncoding, HTAtom ** pLanguage));
extern double 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