+
+ std::string zQueryToString(Z_Query *query);
+
+ Z_ReferenceId **get_referenceId(const Z_APDU *apdu);
+
+ void transfer_referenceId(ODR odr, const Z_APDU *src, Z_APDU *dst);
+
+ Z_APDU *create_APDU(ODR odr, int type, const Z_APDU *in_apdu);
+
+ bool set_databases_from_zurl(ODR odr, std::string zurl,
+ int *db_num, char ***db_strings);
+
+ void split_zurl(std::string zurl, std::string &host,
+ std::list<std::string> &db);
+
+ void get_vhost_otherinfo(Z_OtherInformation *otherInformation,
+ std::list<std::string> &vhosts);
+
+ int remove_vhost_otherinfo(Z_OtherInformation **otherInformation,
+ std::list<std::string> &vhosts);
+
+ void set_vhost_otherinfo(Z_OtherInformation **otherInformation,
+ ODR odr,
+ const std::string vhost,
+ const int cat = 1 );
+
+ void set_vhost_otherinfo(Z_OtherInformation **otherInformation,
+ ODR odr,
+ const std::list<std::string> &vhosts);
+
+ int get_or_remove_vhost_otherinfo(
+ Z_OtherInformation **otherInformation,
+ bool remove_flag,
+ std::list<std::string> &vhosts);
+
+ void get_init_diagnostics(Z_InitResponse *res,
+ int &error_code, std::string &addinfo);
+
+ 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);