YAZ  5.23.1
Data Structures | Macros | Typedefs | Functions
srw.h File Reference

Header for SRW/SRU. More...

#include <yaz/soap.h>
#include <yaz/zgdu.h>
#include <yaz/diagsrw.h>
#include <yaz/diagsru_update.h>
#include <yaz/facet.h>

Go to the source code of this file.

Data Structures

struct  Z_SRW_extra_record
 
struct  Z_SRW_record
 
struct  Z_SRW_diagnostic
 
struct  Z_SRW_searchRetrieveRequest
 
struct  Z_SRW_searchRetrieveResponse
 
struct  Z_SRW_explainRequest
 
struct  Z_SRW_explainResponse
 
struct  Z_SRW_scanRequest
 
struct  Z_SRW_scanTerm
 
struct  Z_SRW_scanResponse
 
struct  Z_SRW_recordVersion
 
struct  Z_SRW_updateRequest
 
struct  Z_SRW_extra_arg
 
struct  Z_SRW_updateResponse
 
struct  Z_SRW_PDU
 

Macros

#define Z_SRW_recordPacking_string   0
 
#define Z_SRW_recordPacking_XML   1
 
#define Z_SRW_recordPacking_URL   2
 
#define Z_SRW_sort_type_none   1
 
#define Z_SRW_sort_type_sort   2
 
#define Z_SRW_sort_type_xSort   3
 
#define Z_SRW_searchRetrieve_request   1
 
#define Z_SRW_searchRetrieve_response   2
 
#define Z_SRW_explain_request   3
 
#define Z_SRW_explain_response   4
 
#define Z_SRW_scan_request   5
 
#define Z_SRW_scan_response   6
 
#define Z_SRW_update_request   7
 
#define Z_SRW_update_response   8
 
#define YAZ_XMLNS_SRU_v1_0   "http://www.loc.gov/zing/srw/v1.0/"
 
#define YAZ_XMLNS_SRU_v1_1   "http://www.loc.gov/zing/srw/"
 
#define YAZ_XMLNS_DIAG_v1_1   "http://www.loc.gov/zing/srw/diagnostic/"
 
#define YAZ_XMLNS_DIAG_v2   "http://docs.oasis-open.org/ns/search-ws/diagnostic"
 
#define YAZ_XMLNS_UPDATE_v0_9   "http://www.loc.gov/zing/srw/update/"
 
#define YAZ_XMLNS_SRU_v2_mask   "http://docs.oasis-open.org/ns/search-ws/*"
 
#define YAZ_XMLNS_SRU_v1_response   "http://www.loc.gov/*"
 

Typedefs

typedef struct Z_SRW_extra_arg Z_SRW_extra_arg
 

Functions

int yaz_srw_codec (ODR o, void *pptr, Z_SRW_PDU **handler_data, void *client_data, const char *ns)
 
int yaz_ucp_codec (ODR o, void *pptr, Z_SRW_PDU **handler_data, void *client_data, const char *ns)
 
Z_SRW_PDUyaz_srw_get_core_v_2_0 (ODR o)
 
Z_SRW_PDUyaz_srw_get_pdu (ODR o, int which, const char *version)
 
Z_SRW_PDUyaz_srw_get_pdu_e (ODR o, int which, Z_SRW_PDU *req)
 
Z_SRW_PDUyaz_srw_get (ODR o, int which)
 
Z_SRW_recordVersionyaz_srw_get_record_versions (ODR o, int num)
 
Z_SRW_extra_recordyaz_srw_get_extra_record (ODR o)
 
Z_SRW_recordyaz_srw_get_record (ODR o)
 
Z_SRW_recordyaz_srw_get_records (ODR o, int num)
 
int yaz_diag_bib1_to_srw (int bib1_code)
 
int yaz_diag_srw_to_bib1 (int srw_code)
 
const char * yaz_srw_pack_to_str (int pack)
 
int yaz_srw_str_to_pack (const char *str)
 
int yaz_uri_to_array (const char *path, ODR o, char ***name, char ***val)
 
void yaz_array_to_uri (char **path, ODR o, char **name, char **value)
 
void yaz_encode_uri_component (char *dst, const char *uri)
 encodes URI component More...
 
void yaz_decode_uri_component (char *dst, const char *uri, size_t len)
 decodes URI component More...
 
int yaz_srw_decode (Z_HTTP_Request *hreq, Z_SRW_PDU **srw_pdu, Z_SOAP **soap_package, ODR decode, char **charset)
 
int yaz_sru_decode (Z_HTTP_Request *hreq, Z_SRW_PDU **srw_pdu, Z_SOAP **soap_package, ODR decode, char **charset, Z_SRW_diagnostic **, int *num_diagnostic)
 
int yaz_solr_decode_response (ODR o, Z_HTTP_Response *hres, Z_SRW_PDU **pdup)
 decode SOLR response (HTTP) More...
 
void yaz_add_srw_diagnostic (ODR o, Z_SRW_diagnostic **d, int *num, int code, const char *addinfo)
 
void yaz_add_sru_update_diagnostic (ODR o, Z_SRW_diagnostic **d, int *num, int code, const char *addinfo)
 
void yaz_mk_std_diagnostic (ODR o, Z_SRW_diagnostic *d, int code, const char *details)
 
void yaz_add_srw_diagnostic_uri (ODR o, Z_SRW_diagnostic **d, int *num, const char *uri, const char *message, const char *details)
 
void yaz_mk_srw_diagnostic (ODR o, Z_SRW_diagnostic *d, const char *uri, const char *message, const char *details)
 
int yaz_sru_get_encode (Z_HTTP_Request *hreq, Z_SRW_PDU *srw_pdu, ODR encode, const char *charset)
 
int yaz_sru_post_encode (Z_HTTP_Request *hreq, Z_SRW_PDU *srw_pdu, ODR encode, const char *charset)
 
int yaz_sru_soap_encode (Z_HTTP_Request *hreq, Z_SRW_PDU *srw_pdu, ODR odr, const char *charset)
 
int yaz_solr_encode_request (Z_HTTP_Request *hreq, Z_SRW_PDU *srw_pdu, ODR encode, const char *charset)
 encode SOLR request (HTTP) More...
 
void yaz_encode_sru_extra (Z_SRW_PDU *sr, ODR odr, const char *extra_args)
 
int yaz_srw_check_content_type (Z_HTTP_Response *hres)
 
int sru_decode_surrogate_diagnostics (const char *buf, size_t len, Z_SRW_diagnostic **diag, int *num, ODR odr)
 
void yaz_mk_sru_surrogate (ODR o, Z_SRW_record *record, int pos, int code, const char *details)
 
char * yaz_encode_sru_dbpath_odr (ODR out, const char *db)
 encode SRU database for HTTP path More...
 
void yaz_encode_sru_dbpath_buf (char *dst, const char *db)
 encode SRU database for HTTP path More...
 

Detailed Description

Header for SRW/SRU.

Definition in file srw.h.

Macro Definition Documentation

#define YAZ_XMLNS_DIAG_v1_1   "http://www.loc.gov/zing/srw/diagnostic/"

Definition at line 329 of file srw.h.

Referenced by yaz_srw_diagnostics(), and yaz_ucp_codec().

#define YAZ_XMLNS_DIAG_v2   "http://docs.oasis-open.org/ns/search-ws/diagnostic"

Definition at line 330 of file srw.h.

Referenced by yaz_srw_diagnostics().

#define YAZ_XMLNS_SRU_v1_0   "http://www.loc.gov/zing/srw/v1.0/"

Definition at line 327 of file srw.h.

Referenced by process_http_request(), and yaz_srw_decode().

#define YAZ_XMLNS_SRU_v1_1   "http://www.loc.gov/zing/srw/"
#define YAZ_XMLNS_SRU_v1_response   "http://www.loc.gov/*"

Definition at line 333 of file srw.h.

Referenced by ZOOM_handle_sru().

#define YAZ_XMLNS_SRU_v2_mask   "http://docs.oasis-open.org/ns/search-ws/*"

Definition at line 332 of file srw.h.

Referenced by yaz_srw_decode(), and ZOOM_handle_sru().

#define YAZ_XMLNS_UPDATE_v0_9   "http://www.loc.gov/zing/srw/update/"

Definition at line 331 of file srw.h.

Referenced by process_http_request(), yaz_sru_soap_encode(), and yaz_srw_decode().

#define Z_SRW_explain_request   3
#define Z_SRW_explain_response   4

Definition at line 194 of file srw.h.

Referenced by process_http_request(), yaz_srw_codec(), yaz_srw_get_pdu(), and yaz_srw_get_pdu_e().

#define Z_SRW_recordPacking_string   0
#define Z_SRW_recordPacking_URL   2

Definition at line 56 of file srw.h.

Referenced by yaz_srw_pack_to_str(), yaz_srw_record(), and yaz_srw_str_to_pack().

#define Z_SRW_recordPacking_XML   1
#define Z_SRW_scan_request   5
#define Z_SRW_scan_response   6
#define Z_SRW_searchRetrieve_request   1
#define Z_SRW_searchRetrieve_response   2
#define Z_SRW_sort_type_none   1

Definition at line 74 of file srw.h.

Referenced by yaz_get_sru_parms(), yaz_solr_encode_request(), yaz_srw_codec(), and yaz_srw_get_pdu().

#define Z_SRW_sort_type_sort   2
#define Z_SRW_sort_type_xSort   3

Definition at line 76 of file srw.h.

Referenced by yaz_srw_codec().

#define Z_SRW_update_request   7
#define Z_SRW_update_response   8

Definition at line 198 of file srw.h.

Referenced by process_http_request(), yaz_sru_soap_encode(), yaz_srw_get_pdu(), and yaz_ucp_codec().

Typedef Documentation

Definition at line 171 of file srw.h.

Function Documentation

int sru_decode_surrogate_diagnostics ( const char *  buf,
size_t  len,
Z_SRW_diagnostic **  diag,
int *  num,
ODR  odr 
)

Definition at line 417 of file srw.c.

References yaz_srw_decode_diagnostics().

Referenced by handle_srw_response().

void yaz_add_sru_update_diagnostic ( ODR  o,
Z_SRW_diagnostic **  d,
int *  num,
int  code,
const char *  addinfo 
)

Definition at line 195 of file srwutil.c.

References yaz_add_srw_diagnostic_uri().

Referenced by srw_bend_update().

void yaz_add_srw_diagnostic ( ODR  o,
Z_SRW_diagnostic **  d,
int *  num,
int  code,
const char *  addinfo 
)
void yaz_add_srw_diagnostic_uri ( ODR  o,
Z_SRW_diagnostic **  d,
int *  num,
const char *  uri,
const char *  message,
const char *  details 
)
void yaz_array_to_uri ( char **  path,
ODR  o,
char **  name,
char **  value 
)

Definition at line 98 of file uri.c.

References odr_malloc(), and yaz_encode_uri_component().

Referenced by yaz_solr_encode_request(), yaz_sru_get_encode(), and yaz_sru_post_encode().

void yaz_decode_uri_component ( char *  dst,
const char *  uri,
size_t  len 
)

decodes URI component

Parameters
dstdestination string (should be at least strlen(uri)+1)
uriURI component buffer (source)
lennumber of bytes to decode from uri

Definition at line 86 of file uri.c.

References decode_uri_char().

int yaz_diag_bib1_to_srw ( int  bib1_code)

Definition at line 203 of file diag_map.c.

References bib1_srw_map.

Referenced by srw_bend_fetch(), srw_bend_init(), srw_bend_scan(), and srw_bend_search().

int yaz_diag_srw_to_bib1 ( int  srw_code)

Definition at line 215 of file diag_map.c.

References bib1_srw_map, and srw_bib1_map.

Referenced by process_searchRequest().

void yaz_encode_sru_dbpath_buf ( char *  dst,
const char *  db 
)

encode SRU database for HTTP path

Parameters
dstdestination buffer (should be at least strlen(db) +2 in size)
dbsource database

The resulting database (dst) includes a leading /

Definition at line 56 of file srwutil.c.

Referenced by yaz_encode_sru_dbpath_odr().

char* yaz_encode_sru_dbpath_odr ( ODR  out,
const char *  db 
)

encode SRU database for HTTP path

Parameters
outmemory handle for resulting encoded database string
dbsource database
Returns
encoded database path (includes leading /)

Definition at line 63 of file srwutil.c.

References odr_malloc(), and yaz_encode_sru_dbpath_buf().

void yaz_encode_sru_extra ( Z_SRW_PDU sr,
ODR  odr,
const char *  extra_args 
)
void yaz_encode_uri_component ( char *  dst,
const char *  uri 
)

encodes URI component

Parameters
dstdestination string (should be at least 3*strlen(uri)+1)
uriURI component C-string (source)

Definition at line 45 of file uri.c.

References encode_uri_char().

Referenced by rdf_lookup_node(), and yaz_array_to_uri().

void yaz_mk_sru_surrogate ( ODR  o,
Z_SRW_record record,
int  pos,
int  code,
const char *  details 
)
void yaz_mk_srw_diagnostic ( ODR  o,
Z_SRW_diagnostic d,
const char *  uri,
const char *  message,
const char *  details 
)
void yaz_mk_std_diagnostic ( ODR  o,
Z_SRW_diagnostic d,
int  code,
const char *  details 
)

Definition at line 162 of file srwutil.c.

References yaz_mk_srw_diagnostic().

int yaz_solr_decode_response ( ODR  o,
Z_HTTP_Response hres,
Z_SRW_PDU **  pdup 
)
int yaz_solr_encode_request ( Z_HTTP_Request hreq,
Z_SRW_PDU srw_pdu,
ODR  encode,
const char *  charset 
)
int yaz_sru_decode ( Z_HTTP_Request hreq,
Z_SRW_PDU **  srw_pdu,
Z_SOAP **  soap_package,
ODR  decode,
char **  charset,
Z_SRW_diagnostic **  diag,
int *  num_diag 
)

http://www.loc.gov/standards/sru/companionSpecs/srw.html

Definition at line 358 of file srwutil.c.

References append_extra_arg(), Z_HTTP_Request::content_buf, Z_SRW_searchRetrieveRequest::database, Z_SRW_explainRequest::database, Z_SRW_scanRequest::database, Z_SRW_PDU::explain_request, Z_SRW_PDU::extra_args, Z_SRW_searchRetrieveRequest::facetList, grab_charset(), Z_HTTP_Request::headers, Z_SRW_searchRetrieveRequest::maximumRecords, Z_SRW_scanRequest::maximumTerms, Z_HTTP_Request::method, Z_SOAP_Handler::ns, odr_malloc(), Z_SRW_searchRetrieveRequest::packing, Z_SRW_explainRequest::packing, Z_HTTP_Request::path, Z_SRW_searchRetrieveRequest::query, Z_SRW_searchRetrieveRequest::queryType, Z_SRW_scanRequest::queryType, Z_SRW_searchRetrieveRequest::recordPacking, Z_SRW_explainRequest::recordPacking, Z_SRW_searchRetrieveRequest::recordSchema, Z_SRW_searchRetrieveRequest::recordXPath, Z_SRW_PDU::request, Z_SRW_scanRequest::responsePosition, Z_SRW_PDU::scan_request, Z_SRW_scanRequest::scanClause, Z_SRW_searchRetrieveRequest::sort, Z_SRW_searchRetrieveRequest::sort_type, Z_SRW_searchRetrieveRequest::sortKeys, Z_SRW_PDU::srw_version, Z_SRW_searchRetrieveRequest::startRecord, Z_SRW_searchRetrieveRequest::stylesheet, Z_SRW_explainRequest::stylesheet, Z_SRW_scanRequest::stylesheet, Z_SRW_PDU::u, yaz_add_srw_diagnostic(), yaz_decode_sru_dbpath_odr(), yaz_negotiate_sru_version(), yaz_sru_decode_integer(), yaz_sru_facet_request(), yaz_srw_codec(), yaz_srw_decodeauth(), yaz_srw_get(), YAZ_SRW_MANDATORY_PARAMETER_NOT_SUPPLIED, YAZ_SRW_UNSUPP_OPERATION, YAZ_SRW_UNSUPP_PARAMETER, YAZ_SRW_UNSUPP_VERSION, yaz_strcmp_del(), yaz_uri_to_array(), YAZ_XMLNS_SRU_v1_1, z_HTTP_header_lookup(), Z_SOAP_generic, Z_SRW_explain_request, Z_SRW_scan_request, Z_SRW_searchRetrieve_request, and Z_SRW_sort_type_sort.

Referenced by process_http_request().

int yaz_sru_get_encode ( Z_HTTP_Request hreq,
Z_SRW_PDU srw_pdu,
ODR  encode,
const char *  charset 
)
int yaz_sru_post_encode ( Z_HTTP_Request hreq,
Z_SRW_PDU srw_pdu,
ODR  encode,
const char *  charset 
)
int yaz_sru_soap_encode ( Z_HTTP_Request hreq,
Z_SRW_PDU srw_pdu,
ODR  odr,
const char *  charset 
)
int yaz_srw_check_content_type ( Z_HTTP_Response hres)

Definition at line 90 of file srwutil.c.

References Z_HTTP_Response::headers, yaz_strcmp_del(), and z_HTTP_header_lookup().

Referenced by ZOOM_handle_sru().

int yaz_srw_codec ( ODR  o,
void *  pptr,
Z_SRW_PDU **  handler_data,
void *  client_data,
const char *  ns 
)

Definition at line 581 of file srw.c.

References add_XML_n(), add_xsd_integer(), add_xsd_string(), Z_SRW_searchRetrieveRequest::database, Z_SRW_explainRequest::database, Z_SRW_scanRequest::database, Z_SRW_searchRetrieveResponse::diagnostics, Z_SRW_explainResponse::diagnostics, Z_SRW_scanResponse::diagnostics, odr::direction, encode_echoed_args(), Z_SRW_explainResponse::extra_record, Z_SRW_searchRetrieveResponse::extra_records, Z_SRW_searchRetrieveRequest::facetList, Z_SRW_searchRetrieveResponse::facetList, yaz_facet_attr::limit, Z_SRW_searchRetrieveRequest::maximumRecords, Z_SRW_scanRequest::maximumTerms, Z_SRW_searchRetrieveResponse::nextRecordPosition, Z_SRW_searchRetrieveRequest::none, Z_SRW_searchRetrieveResponse::num_diagnostics, Z_SRW_explainResponse::num_diagnostics, Z_SRW_scanResponse::num_diagnostics, Z_SRW_searchRetrieveResponse::num_records, Z_SRW_scanResponse::num_terms, Z_SRW_searchRetrieveResponse::numberOfRecords, ODR_DECODE, ODR_ENCODE, odr_malloc(), Z_SRW_searchRetrieveRequest::packing, Z_SRW_explainRequest::packing, Z_SRW_searchRetrieveRequest::query, Z_SRW_searchRetrieveRequest::queryType, Z_SRW_scanRequest::queryType, Z_SRW_explainResponse::record, Z_SRW_record::recordData_buf, Z_SRW_record::recordData_len, Z_SRW_searchRetrieveRequest::recordPacking, Z_SRW_explainRequest::recordPacking, Z_SRW_record::recordPosition, Z_SRW_searchRetrieveResponse::records, Z_SRW_record::recordSchema, Z_SRW_searchRetrieveRequest::recordSchema, Z_SRW_searchRetrieveRequest::recordXPath, Z_SRW_scanRequest::responsePosition, Z_SRW_searchRetrieveResponse::resultCountPrecision, Z_SRW_searchRetrieveResponse::resultSetId, Z_SRW_searchRetrieveResponse::resultSetIdleTime, Z_SRW_searchRetrieveRequest::resultSetTTL, Z_SRW_scanRequest::scanClause, Z_SRW_searchRetrieveRequest::sort, Z_SRW_searchRetrieveRequest::sort_type, Z_SRW_searchRetrieveRequest::sortKeys, Z_SRW_PDU::srw_version, yaz_facet_attr::start, Z_SRW_searchRetrieveRequest::startRecord, Z_SRW_searchRetrieveRequest::stylesheet, Z_SRW_explainRequest::stylesheet, Z_SRW_scanRequest::stylesheet, Z_SRW_searchRetrieveResponse::suggestions, Z_SRW_scanResponse::terms, Z_SRW_searchRetrieveRequest::xSortKeys, yaz_match_xsd_element(), yaz_match_xsd_integer(), yaz_match_xsd_string(), yaz_match_xsd_XML_n(), yaz_negotiate_sru_version(), yaz_sru_facet_request(), yaz_sru_facet_response(), yaz_sru_proxy_decode_facets(), yaz_srw_diagnostics(), yaz_srw_get_core_v_2_0(), yaz_srw_record(), yaz_srw_records(), yaz_srw_terms(), Z_SRW_explain_request, Z_SRW_explain_response, Z_SRW_scan_request, Z_SRW_scan_response, Z_SRW_searchRetrieve_request, Z_SRW_searchRetrieve_response, Z_SRW_sort_type_none, Z_SRW_sort_type_sort, and Z_SRW_sort_type_xSort.

Referenced by process_http_request(), yaz_sru_decode(), yaz_sru_soap_encode(), yaz_srw_decode(), and ZOOM_handle_sru().

int yaz_srw_decode ( Z_HTTP_Request hreq,
Z_SRW_PDU **  srw_pdu,
Z_SOAP **  soap_package,
ODR  decode,
char **  charset 
)
Z_SRW_PDU* yaz_srw_get ( ODR  o,
int  which 
)

Definition at line 757 of file srwutil.c.

References yaz_srw_get_pdu().

Referenced by yaz_solr_decode_response(), and yaz_sru_decode().

Z_SRW_PDU* yaz_srw_get_core_v_2_0 ( ODR  o)

Definition at line 752 of file srwutil.c.

References yaz_srw_get_core_ver().

Referenced by yaz_srw_codec(), and yaz_ucp_codec().

Z_SRW_extra_record* yaz_srw_get_extra_record ( ODR  o)
Z_SRW_PDU* yaz_srw_get_pdu ( ODR  o,
int  which,
const char *  version 
)

Definition at line 818 of file srwutil.c.

References Z_SRW_searchRetrieveRequest::database, Z_SRW_explainRequest::database, Z_SRW_scanRequest::database, Z_SRW_updateRequest::database, Z_SRW_searchRetrieveResponse::diagnostics, Z_SRW_explainResponse::diagnostics, Z_SRW_scanResponse::diagnostics, Z_SRW_updateResponse::diagnostics, Z_SRW_PDU::explain_request, Z_SRW_PDU::explain_response, Z_SRW_explainResponse::extra_record, Z_SRW_updateRequest::extra_record, Z_SRW_updateResponse::extra_record, Z_SRW_searchRetrieveResponse::extra_records, Z_SRW_updateRequest::extraRequestData_buf, Z_SRW_updateRequest::extraRequestData_len, Z_SRW_updateResponse::extraResponseData_buf, Z_SRW_updateResponse::extraResponseData_len, Z_SRW_searchRetrieveRequest::facetList, Z_SRW_searchRetrieveResponse::facetList, Z_SRW_searchRetrieveRequest::maximumRecords, Z_SRW_scanRequest::maximumTerms, Z_SRW_searchRetrieveResponse::nextRecordPosition, Z_SRW_searchRetrieveRequest::none, Z_SRW_searchRetrieveResponse::num_diagnostics, Z_SRW_explainResponse::num_diagnostics, Z_SRW_scanResponse::num_diagnostics, Z_SRW_updateResponse::num_diagnostics, Z_SRW_searchRetrieveResponse::num_records, Z_SRW_updateRequest::num_recordVersions, Z_SRW_updateResponse::num_recordVersions, Z_SRW_scanResponse::num_terms, Z_SRW_searchRetrieveResponse::numberOfRecords, odr_malloc(), Z_SRW_updateResponse::operationStatus, Z_SRW_searchRetrieveRequest::packing, Z_SRW_explainRequest::packing, Z_SRW_searchRetrieveRequest::query, Z_SRW_searchRetrieveRequest::queryType, Z_SRW_scanRequest::queryType, Z_SRW_explainResponse::record, Z_SRW_updateRequest::record, Z_SRW_updateResponse::record, Z_SRW_record::recordData_buf, Z_SRW_record::recordData_len, Z_SRW_updateRequest::recordId, Z_SRW_updateResponse::recordId, Z_SRW_record::recordPacking, Z_SRW_searchRetrieveRequest::recordPacking, Z_SRW_explainRequest::recordPacking, Z_SRW_record::recordPosition, Z_SRW_searchRetrieveResponse::records, Z_SRW_record::recordSchema, Z_SRW_searchRetrieveRequest::recordSchema, Z_SRW_updateRequest::recordVersions, Z_SRW_updateResponse::recordVersions, Z_SRW_searchRetrieveRequest::recordXPath, Z_SRW_PDU::request, Z_SRW_PDU::response, Z_SRW_scanRequest::responsePosition, Z_SRW_searchRetrieveResponse::resultCountPrecision, Z_SRW_searchRetrieveResponse::resultSetId, Z_SRW_searchRetrieveResponse::resultSetIdleTime, Z_SRW_searchRetrieveRequest::resultSetTTL, Z_SRW_PDU::scan_request, Z_SRW_PDU::scan_response, Z_SRW_scanRequest::scanClause, Z_SRW_searchRetrieveRequest::sort, Z_SRW_searchRetrieveRequest::sort_type, Z_SRW_searchRetrieveRequest::startRecord, Z_SRW_searchRetrieveRequest::stylesheet, Z_SRW_explainRequest::stylesheet, Z_SRW_scanRequest::stylesheet, Z_SRW_updateRequest::stylesheet, Z_SRW_searchRetrieveResponse::suggestions, Z_SRW_scanResponse::terms, Z_SRW_PDU::u, Z_SRW_PDU::update_request, Z_SRW_PDU::update_response, Z_SRW_PDU::which, yaz_srw_get_core_ver(), Z_SRW_explain_request, Z_SRW_explain_response, Z_SRW_recordPacking_string, Z_SRW_scan_request, Z_SRW_scan_response, Z_SRW_searchRetrieve_request, Z_SRW_searchRetrieve_response, Z_SRW_sort_type_none, Z_SRW_update_request, and Z_SRW_update_response.

Referenced by process_http_request(), yaz_srw_get(), yaz_srw_get_pdu_e(), and ZOOM_srw_get_pdu().

Z_SRW_PDU* yaz_srw_get_pdu_e ( ODR  o,
int  which,
Z_SRW_PDU req 
)
Z_SRW_record* yaz_srw_get_record ( ODR  o)

Definition at line 735 of file srwutil.c.

References yaz_srw_get_records().

Referenced by srw_bend_update(), and yaz_ucp_codec().

Z_SRW_recordVersion* yaz_srw_get_record_versions ( ODR  o,
int  num 
)
Z_SRW_record* yaz_srw_get_records ( ODR  o,
int  num 
)
const char* yaz_srw_pack_to_str ( int  pack)
int yaz_srw_str_to_pack ( const char *  str)
int yaz_ucp_codec ( ODR  o,
void *  pptr,
Z_SRW_PDU **  handler_data,
void *  client_data,
const char *  ns 
)
int yaz_uri_to_array ( const char *  path,
ODR  o,
char ***  name,
char ***  val 
)

Definition at line 121 of file uri.c.

References decode_uri_char(), odr_malloc(), odr_strdup(), and odr_strdupn().

Referenced by yaz_encode_sru_extra(), yaz_sru_decode(), and ztest_search().