X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=include%2Fmetaproxy%2Futil.hpp;h=7c9f1ee7744b44eb3ad60e474d40a268636212dd;hb=f382c39ab7cdc815ef8320d45dbd878d4f6548f9;hp=3f45349807f54065c1f54f329e793cc653237355;hpb=7dcf766ccdb4773635481a86b1a43c3c86c32d42;p=metaproxy-moved-to-github.git diff --git a/include/metaproxy/util.hpp b/include/metaproxy/util.hpp index 3f45349..7c9f1ee 100644 --- a/include/metaproxy/util.hpp +++ b/include/metaproxy/util.hpp @@ -104,6 +104,12 @@ namespace metaproxy_1 { void get_default_diag(Z_DefaultDiagFormat *r, int &error_code, std::string &addinfo); + void piggyback(int smallSetUpperBound, + int largeSetLowerBound, + int mediumSetPresentNumber, + int result_set_size, + int &number_to_present); + void piggyback_sr(Z_SearchRequest *sreq, Odr_int result_set_size, Odr_int &number_to_present, @@ -118,6 +124,7 @@ namespace metaproxy_1 { Odr_int &number_to_present, const char **element_set_name); + std::string uri_encode(std::string s); }; class odr : public boost::noncopyable {