From: Adam Dickmeiss Date: Wed, 8 Jun 2011 18:53:40 +0000 (+0200) Subject: Retain old mp::util::piggyback (used by CF) X-Git-Tag: v1.2.6~18 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=1f20fd7b81d922d36a843cc3d157f8473912812c;p=metaproxy-moved-to-github.git Retain old mp::util::piggyback (used by CF) --- diff --git a/include/metaproxy/util.hpp b/include/metaproxy/util.hpp index 3f45349..3da0caa 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, diff --git a/src/util.cpp b/src/util.cpp index a6b57be..27916ba 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -188,6 +188,18 @@ void mp_util::piggyback_sr(Z_SearchRequest *sreq, element_set_name); } +void mp_util::piggyback(int smallSetUpperBound, + int largeSetLowerBound, + int mediumSetPresentNumber, + int result_set_size, + int &number_to_present) +{ + Odr_int tmp = number_to_present; + piggyback(smallSetUpperBound, largeSetLowerBound, mediumSetPresentNumber, + 0, 0, result_set_size, tmp, 0); + number_to_present = tmp; +} + void mp_util::piggyback(Odr_int smallSetUpperBound, Odr_int largeSetLowerBound, Odr_int mediumSetPresentNumber,