Fixed possible buf in proto.c
[yaz-moved-to-github.git] / server / session.h
index cd7c2a3..0ab672a 100644 (file)
@@ -4,7 +4,17 @@
  * Sebastian Hammer, Adam Dickmeiss
  *
  * $Log: session.h,v $
- * Revision 1.1  1995-03-14 10:28:02  quinn
+ * Revision 1.4  1995-04-10 10:23:39  quinn
+ * Some work to add scan and other things.
+ *
+ * Revision 1.3  1995/03/30  09:09:27  quinn
+ * Added state-handle and some support for asynchronous activities.
+ *
+ * Revision 1.2  1995/03/27  08:34:29  quinn
+ * Added dynamic server functionality.
+ * Released bindings to session.c (is now redundant)
+ *
+ * Revision 1.1  1995/03/14  10:28:02  quinn
  * More work on demo server.
  *
  *
@@ -15,6 +25,7 @@
 
 #include <comstack.h>
 #include <odr.h>
+#include <oid.h>
 
 typedef struct association
 {
@@ -23,12 +34,15 @@ typedef struct association
     COMSTACK client_link;
     ODR decode;
     ODR encode;
+    ODR print;
     char *encode_buffer;
     int encoded_len;
     char *input_buffer;
     int input_buffer_len;
     int input_apdu_len;
     int state;
+    oid_proto proto;
+    void *backend;
 #define ASSOC_UNINIT       0
 #define ASSOC_IDLE         1
 
@@ -38,6 +52,7 @@ typedef struct association
 } association;
 
 association *create_association(IOCHAN channel, COMSTACK link);
+void destroy_association(association *h);
 void ir_session(IOCHAN h, int event);
 
 #endif