X-Git-Url: http://lists.indexdata.com/cgi-bin?a=blobdiff_plain;f=src%2Futil.cpp;h=dd80df01770c2dc89f6f98a938731da2e82ff5bd;hb=25a823f54ee7b7e0d8000194cd0a6440627b7212;hp=15aa7aea4ffb7be59ba8ba4b5bd5e9d2f1161c66;hpb=33243335d807707f1ae5eb0468cc74b574eb4b69;p=metaproxy-moved-to-github.git diff --git a/src/util.cpp b/src/util.cpp index 15aa7ae..dd80df0 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -1,4 +1,4 @@ -/* $Id: util.cpp,v 1.9 2006-01-17 17:55:40 adam Exp $ +/* $Id: util.cpp,v 1.10 2006-01-18 10:57:27 adam Exp $ Copyright (c) 2005, Index Data. %LICENSE% @@ -124,6 +124,19 @@ int yp2::util::get_vhost_otherinfo(Z_OtherInformation **otherInformation, return cat; } +void yp2::util::set_vhost_otherinfo(Z_OtherInformation **otherInformation, + ODR odr, + const std::list &vhosts) +{ + int cat; + std::list::const_iterator it = vhosts.begin(); + for (cat = 1; it != vhosts.end() ; cat++, it++) + { + yaz_oi_set_string_oidval(otherInformation, odr, + VAL_PROXY, cat, it->c_str()); + } +} + void yp2::util::split_zurl(std::string zurl, std::string &host, std::list &db) {