HTFile.h
Upload User: zlh9724
Upload Date: 2007-01-04
Package Size: 1991k
Code Size: 2k
Category:

Browser Client

Development Platform:

Unix_Linux

  1. /*                                                                                File Access
  2.                                        FILE ACCESS
  3.                                              
  4.  */
  5. /*
  6. **      (c) COPYRIGHT MIT 1995.
  7. **      Please first read the full copyright statement in the file COPYRIGH.
  8. */
  9. /*
  10.    These are routines for local file access used by WWW browsers and servers.
  11.    
  12.    This module is implemented by HTFile.c, and it is a part of the  W3C Reference Library.
  13.    
  14.  */
  15. #ifndef HTFILE_H
  16. #define HTFILE_H
  17. #include "HTEvntrg.h"
  18. extern HTEventCallback HTLoadFile;
  19. /*
  20. Directory Access
  21.    You can define the directory access for file URLs by using the following function.
  22.    
  23.  */
  24. typedef enum _HTDirAccess {
  25.     HT_DIR_FORBID,                      /* Altogether forbidden */
  26.     HT_DIR_SELECTIVE,                   /* Only if "selfile" exists */
  27.     HT_DIR_OK                           /* Directory reading always OK */
  28. } HTDirAccess;
  29. #define DEFAULT_DIR_FILE        ".www_browsable"    /* If exists, can browse */
  30. extern HTDirAccess  HTFile_dirAccess    (void);
  31. extern BOOL HTFile_setDirAccess         (HTDirAccess mode);
  32. /*
  33. Readme Files
  34.    You can specify the module to look for a README file and to put into a directory
  35.    listing. These are the possibilities:
  36.    
  37.  */
  38. typedef enum _HTDirReadme {
  39.     HT_DIR_README_NONE,
  40.     HT_DIR_README_TOP,
  41.     HT_DIR_README_BOTTOM
  42. } HTDirReadme;
  43. #define DEFAULT_README          "README"
  44. extern HTDirReadme  HTFile_dirReadme    (void);
  45. extern BOOL HTFile_setDirReadme         (HTDirReadme mode);
  46. /*
  47.  */
  48. #endif /* HTFILE_H */
  49. /*
  50.    End of declaration of HTFile module  */