+struct Yaz_RecordCache_Entry;
+
+class YAZ_EXPORT Yaz_ProxyConfig {
+public:
+ Yaz_ProxyConfig();
+ ~Yaz_ProxyConfig();
+ int read_xml(const char *fname);
+ void get_target_info(const char *name, const char **url, int *keepalive,
+ int *limit_bw, int *limit_pdu, int *limit_req);
+ void operator=(const Yaz_ProxyConfig &conf);
+private:
+#if HAVE_XML2
+ xmlDocPtr m_docPtr;
+ xmlNodePtr m_proxyPtr;
+ void return_target_info(xmlNodePtr ptr, const char **url, int *keepalive,
+ int *limit_bw, int *limit_pdu, int *limit_req);
+ void return_limit(xmlNodePtr ptr,
+ int *limit_bw, int *limit_pdu, int *limit_req);
+ const char *get_text(xmlNodePtr ptr);
+#endif
+ int m_copy;
+};