X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fsession.h;h=69b1add7b048f27c38526fcc2876362e68e5f52c;hb=f514c7fcb9cd0c205b308a1213112317d564874c;hp=071318d1970f682b9e43311fc7a339c8b2c1f41e;hpb=4c176312acdc3444c9afc820f76a393e64668e52;p=yaz-moved-to-github.git diff --git a/src/session.h b/src/session.h index 071318d..69b1add 100644 --- a/src/session.h +++ b/src/session.h @@ -2,7 +2,7 @@ * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: session.h,v 1.3 2005-01-15 19:47:14 adam Exp $ + * $Id: session.h,v 1.7 2005-03-03 23:16:20 adam Exp $ */ /** * \file session.h @@ -11,17 +11,33 @@ #ifndef SESSION_H #define SESSION_H -#include #include +#include #include #include #include +#include #include "eventl.h" +struct gfs_server { + statserv_options_block cb; + char *host; + int listen_ref; + cql_transform_t cql_transform; + void *server_node_ptr; + struct gfs_server *next; +}; + +struct gfs_listen { + char *id; + char *address; + struct gfs_listen *next; +}; + typedef enum { - REQUEST_IDLE, /* the request is just sitting in the queue */ - REQUEST_PENDING /* operation pending (b'end processing or network I/O*/ - /* this list will have more elements when acc/res control is added */ + REQUEST_IDLE, /* the request is just sitting in the queue */ + REQUEST_PENDING /* operation pending (b'end processing or network I/O*/ + /* this list will have more elements when acc/res control is added */ } request_state; typedef struct request @@ -89,9 +105,13 @@ typedef struct association unsigned cs_accept_mask; struct bend_initrequest *init; + statserv_options_block *last_control; + cql_transform_t cql_transform; + void *server_node_ptr; } association; -association *create_association(IOCHAN channel, COMSTACK link); +association *create_association(IOCHAN channel, COMSTACK link, + const char *apdufile); void destroy_association(association *h); void ir_session(IOCHAN h, int event); @@ -106,4 +126,6 @@ void request_release(request *r); int statserv_must_terminate(void); +int control_association(association *assoc, const char *host, int force); + #endif