projects
/
metaproxy-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Working outgoing IP for {http,z3950}_client MP-575
[metaproxy-moved-to-github.git]
/
include
/
metaproxy
/
util.hpp
diff --git
a/include/metaproxy/util.hpp
b/include/metaproxy/util.hpp
index
ab0834b
..
2377f5f
100644
(file)
--- a/
include/metaproxy/util.hpp
+++ b/
include/metaproxy/util.hpp
@@
-1,5
+1,5
@@
/* This file is part of Metaproxy.
/* This file is part of Metaproxy.
- Copyright (C) 2005-2012 Index Data
+ Copyright (C) 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
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
@@
-104,12
+104,18
@@
namespace metaproxy_1 {
void get_default_diag(Z_DefaultDiagFormat *r,
int &error_code, std::string &addinfo);
void get_default_diag(Z_DefaultDiagFormat *r,
int &error_code, std::string &addinfo);
+ Z_RecordComposition *piggyback_to_RecordComposition(
+ ODR odr, Odr_int result_set_size, Z_SearchRequest *sreq);
+
void piggyback(int smallSetUpperBound,
int largeSetLowerBound,
int mediumSetPresentNumber,
int result_set_size,
void piggyback(int smallSetUpperBound,
int largeSetLowerBound,
int mediumSetPresentNumber,
int result_set_size,
- int &number_to_present);
-
+ int &number_to_present)
+#ifdef __GNUC__
+ __attribute__ ((deprecated))
+#endif
+ ;
void piggyback_sr(Z_SearchRequest *sreq,
Odr_int result_set_size,
Odr_int &number_to_present,
void piggyback_sr(Z_SearchRequest *sreq,
Odr_int result_set_size,
Odr_int &number_to_present,
@@
-148,6
+154,9
@@
namespace metaproxy_1 {
Z_GDU *create_HTTP_Response(metaproxy_1::Session &session,
Z_HTTP_Request *req, int code);
Z_GDU *create_HTTP_Response(metaproxy_1::Session &session,
Z_HTTP_Request *req, int code);
+ Z_GDU *create_HTTP_Response_details(metaproxy_1::Session &session,
+ Z_HTTP_Request *req, int code,
+ const char *details);
private:
ODR m_odr;
};
private:
ODR m_odr;
};
@@
-160,6
+169,8
@@
namespace metaproxy_1 {
operator WRBUF() const;
size_t len();
const char *buf();
operator WRBUF() const;
size_t len();
const char *buf();
+ const char *c_str();
+ const char *c_str_null();
private:
WRBUF m_wrbuf;
};
private:
WRBUF m_wrbuf;
};