#ifndef HTDESCRIPT_H #define HTDESCRIPT_H
HTHTDesctiptionFile
in the same directory. The default
value is .www_descript
:
extern char * HTDescriptionFile;In the description file lines starting with a word starting with 'D' are taken to be descriptions (this looks funny now, but this is to make it easy to extend these description files to contain also other information.
/* * Example: * DESCRIBE welcome.html Our welcome page * DESCRIBE map*.gif Map as a GIF image * DESCRIBE map*.ps Map as a PostScript image */
text/html
, this module uses the HTML TITLE as the
description. This feature can be turned off by setting the
HTPeekTitles
variable to false.
extern BOOL HTPeekTitles;
HTReadDescriptions()
, and the result returned by it is
given as an argument when finding out a description for a single file.
PUBLIC HTList * HTReadDescriptions PARAMS((char * dirname));
HTReadDescriptions()
, the function
HTGetDescription()
can be used to get a description for a
given file:
PUBLIC char * HTGetDescription PARAMS((HTList * descriptions, char * dirname, char * filename, HTFormat format));Directory name has to be present because this function may then take a peek at the file itself (to get the HTML TITLE, for example). If
format
is WWW_HTML
and description is not
found, this module may be configured to use the HTML TITLE as the
description. No string returned by this function should be freed!
HTReadDescriptions()
must be freed by
HTFreeDescriptions()
:
PUBLIC void HTFreeDescriptions PARAMS((HTList * descriptions));
#endif /* !HTDESCRIPT_H */End of
HTDescript.h
.