home *** CD-ROM | disk | FTP | other *** search
/ Super Net 1 / SUPERNET_1.iso / PC / OTROS / EXTRAS / WINWAIS / IR / UI.H < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-07  |  2.1 KB  |  96 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. /* this is a simple ui for building other ui's on top.
  9.  * -brewster
  10.  */
  11.  
  12. /* to do:
  13.  *   generate multiple queries for long documents.
  14.  *     this will crash if the file being retrieved is larger than 100k.
  15.  *   
  16.  */
  17.  
  18. #ifndef UI_H
  19. #define UI_H
  20.  
  21. #include "cdialect.h"
  22. #include "zprot.h"
  23. #include "zutil.h"
  24. #include "wprot.h"
  25. #include "wmessage.h"
  26. #include "panic.h"
  27. #include "version.h"
  28.  
  29. #define SERVICE_NAME "z39_50"
  30.  
  31. #ifdef __cplusplus
  32. /* declare these as C style functions */
  33. extern "C"
  34.     {
  35. #endif /* def __cplusplus */
  36.  
  37.  
  38. char *
  39. generate_search_apdu _AP((char* buff,  /* buffer to hold the apdu */
  40.               long *buff_len, /* number of bytes written to the buffer */
  41.               char *seed_words, /* string of the seed words */
  42.               char *database_name,
  43.               DocObj** docobjs,
  44.               long maxDocsRetrieved
  45.               ));
  46.  
  47. char *
  48. generate_retrieval_apdu _AP((char *buff, 
  49.                  long *buff_len, 
  50.                  any *docID,
  51.                  long chunk_type,
  52.                  long start_line, long end_line,
  53.                  char *type,
  54.                  char *database_name));
  55.  
  56.  
  57. /* moved into individual ui codes -brewster and bonnie
  58. void
  59. dsply_text_record_completely _AP((WAISDocumentText *record));
  60.  
  61. void
  62. display_search_response _AP((SearchResponseAPDU *response));
  63. */
  64.  
  65. /* to initialize a conection.  Returns max buffer size. */
  66.  
  67. long
  68. init_connection _AP((char* inBuffer,
  69.              char* outBuffer,
  70.              long bufferSize,
  71.              SOCKET connection));
  72.  
  73. long
  74. interpret_message _AP((char *request_message,
  75.                long request_length,
  76.                char *response_message,
  77.                long response_buffer_length, /* length of the buffer (modified)*/
  78.                SOCKET connection,
  79.                boolean verbose));
  80.  
  81. long close_connection _AP((SOCKET connection));
  82.  
  83. void
  84. display_text_record_completely _AP((WAISDocumentText *record, 
  85.                    boolean quote_string_quotes));
  86.  
  87. char *trim_junk _AP((char *headline));
  88.  
  89. #ifdef __cplusplus
  90.     }
  91. #endif /* def __cplusplus */
  92.  
  93.  
  94.  
  95. #endif /* ndef UI_H */
  96.