X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fsession.h;h=f6070d15e18b747e6a1d02cc2dd1bb34926acc79;hb=455798a3154b5c08c872ca0fb90607ddea575038;hp=77919fbf10152d7d52bba809bbdc8f3dbee40d76;hpb=825d22351b1d59c71e98357b4931bf7bb67daa3a;p=yaz-moved-to-github.git diff --git a/src/session.h b/src/session.h index 77919fb..f6070d1 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.4 2005-01-16 21:51:50 adam Exp $ + * $Id: session.h,v 1.9 2005-06-25 15:46:05 adam Exp $ */ /** * \file session.h @@ -12,15 +12,33 @@ #define SESSION_H #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; + char *directory; + 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 @@ -88,9 +106,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); @@ -105,4 +127,14 @@ void request_release(request *r); int statserv_must_terminate(void); +int control_association(association *assoc, const char *host, int force); + #endif +/* + * Local variables: + * c-basic-offset: 4 + * indent-tabs-mode: nil + * End: + * vim: shiftwidth=4 tabstop=8 expandtab + */ +