X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fyaz%2Fsrw.h;h=2c7cc0109efcad9861aee961f71f2380f9bc73aa;hb=d654b817f2bdb80102dd663d78f31ab3eea4f6bd;hp=ae419ca4343743f8651a71260044ab5b6566b2cb;hpb=8375be590a8640cd5673106bc828dd6d4711be28;p=yaz-moved-to-github.git diff --git a/include/yaz/srw.h b/include/yaz/srw.h index ae419ca..2c7cc01 100644 --- a/include/yaz/srw.h +++ b/include/yaz/srw.h @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2013 Index Data. + * Copyright (C) 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: @@ -212,7 +212,12 @@ typedef struct { char *srw_version; char *username; /* From HTTP header or request */ char *password; /* From HTTP header or request */ - Z_SRW_extra_arg *extra_args; /* extraRequestData SRU GET/POST */ + + /* 1. SRU extraRequestData x-name=value for requests encoding */ + /* 2. SRU extraRequestData x-name=value for requests decoding */ + /* 3. SRU echoed data for response encoding */ + Z_SRW_extra_arg *extra_args; + char *extraResponseData_buf; int extraResponseData_len; } Z_SRW_PDU; @@ -225,6 +230,7 @@ YAZ_EXPORT int yaz_ucp_codec(ODR o, void * pptr, void *client_data, const char *ns); YAZ_EXPORT Z_SRW_PDU *yaz_srw_get_core_v_2_0(ODR o); YAZ_EXPORT Z_SRW_PDU *yaz_srw_get_pdu(ODR o, int which, const char *version); +YAZ_EXPORT Z_SRW_PDU *yaz_srw_get_pdu_e(ODR o, int which, Z_SRW_PDU *req); YAZ_EXPORT Z_SRW_PDU *yaz_srw_get(ODR o, int which); YAZ_EXPORT Z_SRW_recordVersion *yaz_srw_get_record_versions(ODR o, int num); YAZ_EXPORT Z_SRW_extra_record *yaz_srw_get_extra_record(ODR o);