Retain old mp::util::piggyback (used by CF)
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 8 Jun 2011 18:53:40 +0000 (20:53 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 8 Jun 2011 18:53:40 +0000 (20:53 +0200)
include/metaproxy/util.hpp
src/util.cpp

index 3f45349..3da0caa 100644 (file)
@@ -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,
index a6b57be..27916ba 100644 (file)
@@ -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,