Parent (eti) creates BOTH FIFOs. dtbsun is more happy now.
[egate.git] / kernel / kernel.h
index fa6767c..40bafaf 100644 (file)
@@ -2,7 +2,26 @@
  * Europagate, 1995
  *
  * $Log: kernel.h,v $
- * Revision 1.9  1995/03/03 17:19:13  adam
+ * Revision 1.15  1995/04/19 13:19:08  adam
+ * New command: account - for authentication.
+ *
+ * Revision 1.14  1995/04/19  10:46:18  adam
+ * Persistency works much better now. New command: status - history-like
+ *
+ * Revision 1.13  1995/04/19  07:31:04  adam
+ * First work on Z39.50 persistence.
+ *
+ * Revision 1.12  1995/04/17  09:34:29  adam
+ * Timeout (idletime) adjustable. Minor changes in kernel.
+ *
+ * Revision 1.11  1995/03/28  11:42:34  adam
+ * First use of string-queue utility.
+ *
+ * Revision 1.10  1995/03/27  08:24:01  adam
+ * First use of gip interface and gw-db.
+ * First work on eti program.
+ *
+ * Revision 1.9  1995/03/03  17:19:13  adam
  * Smarter presentation. Bug fix in email header interpretation.
  *
  * Revision 1.8  1995/03/01  14:32:24  adam
 #if USE_FML
 #include <fmlmarc.h>
 #endif
+#include <strqueue.h>
 
-int urp (FILE *inf);
+#define LINE_MAX 1024
 
 struct gw_user_set {
-    char *name;        /* name of result set */
-    int hits;          /* -1 on error */
+    char   *name;               /* name of result set */
+    int    hits;                /* -1 on error */
+    char   *database;           /* database(s) in which we search */
+    struct ccl_rpn_node *rpn;   /* rpn request */
+    int    present_flag;        /* present in target (presistency) */
+    char   *search_str;         /* find request string */
     struct gw_user_set *prev;
 };
 
@@ -61,6 +85,7 @@ struct gw_kernel_info {
     const char *override_res;
     char target[128];
     char hostname[128];
+    char account[128];
     int  port;
     const char *lang;
     const char *override_portno;
@@ -68,6 +93,10 @@ struct gw_kernel_info {
     char *databases;
     char *database;
     ZASS  zass;
+    int command_no;
+    char  from_str[LINE_MAX+1];
+    const char *reply_fname;
+    int setno;
 #if USE_FML
     Fml   fml;
 #endif
@@ -78,12 +107,33 @@ extern struct gw_kernel_info info;
 
 extern FILE *reply_fd;
 
+int  urp_start   (int continuation, struct str_queue *queue);
+int  urp_command (struct str_queue *queue);
+void urp_end     (void);
+
 void read_kernel_res (void);
 
-struct gw_user_set *user_set_add (const char *name, int hits);
+struct gw_user_set *user_set_add (const char *name, int hits,
+                                  const char *database,
+                                 struct ccl_rpn_node *rpn,
+                                 int present_flag,
+                                  const char *search_str);
 struct gw_user_set *user_set_search (const char *name);
 void user_set_init (void);
-void tty_emit (int ch);
-void tty_init (FILE *out, int min, int max);
+
+int lgets (char *buf, int max, int fd);
+
+const struct zass_searchent *zass_p_search (ZASS zass, 
+                                      struct ccl_rpn_node *rpn,
+                                      const char *result_set,
+                                     const char *database,
+                                     struct gw_user_set *sets);
+const struct zass_presentent *zass_p_present (ZASS zass,
+                                      const char *result_set,
+                                     int offset, int number);
+
+int load_p_state (int userid);
+int save_p_state (int userid);
+int reopen_target (void);
 
 #define KERNEL_LOG "kernel"