changed output to be non-cascarding when using -n switch
[yaz-moved-to-github.git] / src / session.h
index b9fdf02..e0cba4c 100644 (file)
@@ -1,8 +1,8 @@
 /*
- * Copyright (C) 1995-2005, Index Data ApS
+ * Copyright (C) 1995-2007, Index Data ApS
  * See the file LICENSE for details.
  *
- * $Id: session.h,v 1.8 2005-03-08 11:07:49 adam Exp $
+ * $Id: session.h,v 1.13 2007-01-03 08:42:15 adam Exp $
  */
 /**
  * \file session.h
@@ -17,6 +17,7 @@
 #include <yaz/oid.h>
 #include <yaz/proto.h>
 #include <yaz/backend.h>
+#include <yaz/retrieval.h>
 #include "eventl.h"
 
 struct gfs_server {
@@ -26,6 +27,9 @@ struct gfs_server {
     cql_transform_t cql_transform;
     void *server_node_ptr;
     char *directory;
+    char *docpath;
+    char *stylesheet;
+    yaz_retrieval_t retrieval;
     struct gfs_server *next;
 };
 
@@ -107,12 +111,12 @@ typedef struct association
 
     struct bend_initrequest *init;
     statserv_options_block *last_control;
-    cql_transform_t cql_transform;
-    void *server_node_ptr;
+
+    struct gfs_server *server;
 } association;
 
 association *create_association(IOCHAN channel, COMSTACK link,
-                               const char *apdufile);
+                                const char *apdufile);
 void destroy_association(association *h);
 void ir_session(IOCHAN h, int event);
 
@@ -129,4 +133,14 @@ int statserv_must_terminate(void);
 
 int control_association(association *assoc, const char *host, int force);
 
+int ir_read(IOCHAN h, int event);
+
 #endif
+/*
+ * Local variables:
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * End:
+ * vim: shiftwidth=4 tabstop=8 expandtab
+ */
+