home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / freeWAIS-sf-1.1 / ir / sigindex.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-05-19  |  1.2 KB  |  69 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. /* Copyright (c) CNIDR (see ../COPYRIGHT) */
  9.  
  10.  
  11. /* Include file for the irhash.c file.
  12.    Implements the building functions in irext.h */
  13.  
  14. #ifndef SIGINDEX_H
  15. #define SIGINDEX_H
  16.  
  17. #include "cdialect.h"
  18.  
  19. #ifdef __cplusplus
  20. /* declare these as C style functions */
  21. extern "C"
  22.     {
  23. #endif /* def __cplusplus */
  24.  
  25.  
  26. /* ============================
  27.  * ===  Building Functions  ===
  28.  * ============================*/
  29.  
  30. long sig_init_add_word _AP ((database *db, long parameter1, long parameter2));
  31.  
  32. long sig_add_word _AP((
  33.                char *word,
  34.                long char_pos,
  35.                long line_pos,
  36.                long weight,
  37.                long doc_id,
  38.                time_t date,
  39.                long pair_word));
  40.  
  41. long sig_finished_add_word _AP((database *db));
  42.  
  43.  
  44. #ifdef __cplusplus
  45.     }
  46. #endif /* def __cplusplus */
  47.  
  48. /*
  49.  * define constants to interface sig functions
  50.  */
  51.  
  52. /* update types */
  53. #define ONLINE_UPDATE   1
  54. #define BATCH_UPDATE    2
  55.  
  56. /* operation mode */
  57. #define ADD_UPDATE 1
  58. #define MOD_UPDATE 2
  59. #define DEL_UPDATE 3
  60.  
  61.  
  62. #endif /* nded SIGINDEX_H */
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.