X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=blobdiff_plain;ds=sidebyside;f=include%2Fmetaproxy%2Futil.hpp;h=3df86545267db5a14ed928dbb900df36fa631628;hb=3b9de1c22d69590ad7470a27f9091f61bb825d7e;hp=810afbde8bcc74d19736e6bc160b53d64a250c2f;hpb=e6d572ef110d14fa55115021505b808620457bd3;p=metaproxy-moved-to-github.git diff --git a/include/metaproxy/util.hpp b/include/metaproxy/util.hpp index 810afbd..3df8654 100644 --- a/include/metaproxy/util.hpp +++ b/include/metaproxy/util.hpp @@ -1,5 +1,5 @@ /* This file is part of Metaproxy. - Copyright (C) 2005-2010 Index Data + Copyright (C) 2005-2011 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 @@ -110,6 +110,22 @@ namespace metaproxy_1 { int result_set_size, int &number_to_present); + void piggyback_sr(Z_SearchRequest *sreq, + Odr_int result_set_size, + Odr_int &number_to_present, + const char **element_set_name); + + void piggyback(Odr_int smallSetUpperBound, + Odr_int largeSetLowerBound, + Odr_int mediumSetPresentNumber, + const char *smallSetElementSetNames, + const char *mediumSetElementSetNames, + Odr_int result_set_size, + Odr_int &number_to_present, + const char **element_set_name); + + std::string uri_encode(std::string s); + std::string uri_decode(std::string s); }; class odr : public boost::noncopyable {