X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fmetaproxy%2Futil.hpp;h=2377f5fad27eb99a4975cd0c700bb14f437ab446;hb=88907efa4d22cad39f1545525c95289d8aa1226a;hp=e5d2768100f8e91479a9aa5f1f9eca2f0e5471c0;hpb=b8d5728fc9d3461f5bfd7d79f415512822c38dcc;p=metaproxy-moved-to-github.git diff --git a/include/metaproxy/util.hpp b/include/metaproxy/util.hpp index e5d2768..2377f5f 100644 --- a/include/metaproxy/util.hpp +++ b/include/metaproxy/util.hpp @@ -1,5 +1,5 @@ /* This file is part of Metaproxy. - Copyright (C) 2005-2013 Index Data + Copyright (C) Index Data Metaproxy is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -106,13 +106,16 @@ namespace metaproxy_1 { Z_RecordComposition *piggyback_to_RecordComposition( ODR odr, Odr_int result_set_size, Z_SearchRequest *sreq); - + void piggyback(int smallSetUpperBound, int largeSetLowerBound, int mediumSetPresentNumber, int result_set_size, - int &number_to_present); - + int &number_to_present) +#ifdef __GNUC__ + __attribute__ ((deprecated)) +#endif + ; void piggyback_sr(Z_SearchRequest *sreq, Odr_int result_set_size, Odr_int &number_to_present, @@ -151,6 +154,9 @@ namespace metaproxy_1 { Z_GDU *create_HTTP_Response(metaproxy_1::Session &session, Z_HTTP_Request *req, int code); + Z_GDU *create_HTTP_Response_details(metaproxy_1::Session &session, + Z_HTTP_Request *req, int code, + const char *details); private: ODR m_odr; }; @@ -163,6 +169,8 @@ namespace metaproxy_1 { operator WRBUF() const; size_t len(); const char *buf(); + const char *c_str(); + const char *c_str_null(); private: WRBUF m_wrbuf; };