X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fsession.h;h=96a32e08bffc60a2618062bd8dc1432fba527fa6;hb=8b2791efeb9e671fabf90c36c6828a5bf71c887b;hp=f9c42e3d1382ef6c69809745648dcd7525be6f88;hpb=05c274ef315384faafcc5900c17468f0ea2474e6;p=yaz-moved-to-github.git diff --git a/src/session.h b/src/session.h index f9c42e3..96a32e0 100644 --- a/src/session.h +++ b/src/session.h @@ -1,8 +1,8 @@ /* - * Copyright (C) 1995-2004, Index Data + * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: session.h,v 1.2 2004-10-15 00:19:00 adam Exp $ + * $Id: session.h,v 1.6 2005-03-01 20:37:01 adam Exp $ */ /** * \file session.h @@ -11,17 +11,32 @@ #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; + 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 +104,12 @@ typedef struct association unsigned cs_accept_mask; struct bend_initrequest *init; + statserv_options_block *last_control; + cql_transform_t cql_transform; } 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 +124,6 @@ void request_release(request *r); int statserv_must_terminate(void); +int control_association(association *assoc, const char *host, int force); + #endif