X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fsession.h;h=e0cba4c2c82cf9b2471a220c3873587b6bb32d30;hb=db93359f0cbf9a1e9dc81ea05f7b8662f843ae3d;hp=69402ab57953aaadf00e22338e7403ed88b9e046;hpb=c519e4716646be3b24f7d4d3de99e06e423da865;p=yaz-moved-to-github.git diff --git a/src/session.h b/src/session.h index 69402ab..e0cba4c 100644 --- a/src/session.h +++ b/src/session.h @@ -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.5 2005-02-01 14:46:47 adam Exp $ + * $Id: session.h,v 1.13 2007-01-03 08:42:15 adam Exp $ */ /** * \file session.h @@ -12,19 +12,33 @@ #define SESSION_H #include +#include #include #include #include #include +#include #include "eventl.h" struct gfs_server { statserv_options_block cb; char *host; - int port; + int listen_ref; + cql_transform_t cql_transform; + void *server_node_ptr; + char *directory; + char *docpath; + char *stylesheet; + yaz_retrieval_t retrieval; 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*/ @@ -97,10 +111,12 @@ typedef struct association struct bend_initrequest *init; statserv_options_block *last_control; + + 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); @@ -117,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 + */ +