X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=include%2Fyaz%2Fbackend.h;h=319b91d69666071f9d4a40751e50f75f41a8b796;hp=1d1661642af3ae9c97360e45fc182dd48e446d69;hb=a3e65bcd3250b107397675bc65b35b5939355025;hpb=84567c573de4d4b9822d9f2dd9caf8e97d864118 diff --git a/include/yaz/backend.h b/include/yaz/backend.h index 1d16616..319b91d 100644 --- a/include/yaz/backend.h +++ b/include/yaz/backend.h @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2009 Index Data. + * Copyright (C) 1995-2012 Index Data. * All rights reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -63,7 +63,6 @@ typedef struct { ODR print; /**< print stream (input) */ bend_association association; /**< GFS association / sesssion (input) */ - int *fd; /**< select fd - not working (output) */ Odr_int hits; /**< hits (output) */ int errcode; /**< Diagnostic code / 0 for no error (output) */ char *errstring; /**< Additional info (output) */ @@ -75,6 +74,7 @@ typedef struct { int partial_resultset; /**< 1=partial results; 0=full (output)*/ Z_SRW_extra_arg *extra_args; /**< SRU extra request parameters (input) */ char *extra_response_data; /**< SRW extra XML response (output) */ + Z_OtherInformation *search_input; /**< extra search info request (input) */ } bend_search_rr; /** \brief Information for present handler. Does not replace bend_fetch. */ @@ -138,8 +138,8 @@ typedef struct bend_scan_rr { ODR stream; /**< encoding stream (input) */ ODR print; /**< printing stream (input) */ - Odr_int *step_size; /**< step size */ - Odr_int term_position; /**< desired index of term in result list/returned */ + int *step_size; /**< step size */ + int term_position; /**< desired index of term in result list/returned */ int num_entries; /**< number of entries requested/returned */ /* scan term entries. The called handler does not have @@ -182,7 +182,7 @@ typedef struct bend_delete_rr { char **setnames; Z_ReferenceId *referenceId; int delete_status; /**< status for the whole operation */ - Odr_int *statuses; /**< status each set - indexed as setnames */ + int *statuses; /**< status each set - indexed as setnames */ ODR stream; ODR print; } bend_delete_rr; @@ -358,6 +358,7 @@ typedef struct statserv_options_block int background; /**< auto daemon */ char cert_fname[128]; /**< SSL certificate fname */ char xml_config[128]; /**< XML config filename */ + int keepalive; /**< keep alive if HTTP 1.1 (default: 1) */ } statserv_options_block; YAZ_EXPORT int statserv_main(