home *** CD-ROM | disk | FTP | other *** search
/ Education Sampler 1992 [NeXTSTEP] / Education_1992_Sampler.iso / Programming / Source / WAIS / ir / irtfiles.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-02-02  |  1.2 KB  |  55 lines

  1. /* WIDE AREA INFORMATION SERVER SOFTWARE:
  2.    No guarantees or restrictions.  See the readme file for the full standard
  3.    disclaimer.
  4.  
  5.    Brewster@think.com
  6. */
  7.  
  8. /* header for irtfiles.c */
  9.  
  10. #ifndef IRTFILES_H
  11. #define IRTFILES_H
  12.  
  13. #include "cdialect.h"
  14. #include "irfiles.h" /* for database struct */
  15.  
  16. #ifdef __cplusplus
  17. /* declare these as C style functions */
  18. extern "C"
  19.     {
  20. #endif /* def __cplusplus */
  21.  
  22. typedef boolean (boolfunc)();
  23. typedef void (voidfunc)();
  24. typedef long (longfunc)();
  25.  
  26. void index_text_file _AP((char* filename,
  27.               boolean (*separator_function)(),
  28.               void (*header_function)(),
  29.               longfunc *date_function,
  30.               void (*put_together_header_function)(), 
  31.               char *type,
  32.               database* db,
  33.               boolean check_for_text_file,
  34.               boolean check_for_file_already_indexed));
  35.  
  36. boolean directoryp _AP ((char *file));
  37.  
  38. boolean filep _AP((char* file));
  39.  
  40. void index_directory _AP ((char *file,
  41.                boolfunc *separator_function,
  42.                voidfunc *header_function,
  43.                longfunc *date_function,
  44.                voidfunc *finish_header_function, 
  45.                char *type,
  46.                database *db,
  47.                boolean check_for_text_file,
  48.                boolean check_for_file_already_indexed));
  49.  
  50. #ifdef __cplusplus
  51.     }
  52. #endif /* def __cplusplus */
  53. #endif /* ndef IRTFILES_H */
  54.  
  55.