1 /* This file is part of Metaproxy.
2 Copyright (C) 2005-2011 Index Data
4 Metaproxy is free software; you can redistribute it and/or modify it under
5 the terms of the GNU General Public License as published by the Free
6 Software Foundation; either version 2, or (at your option) any later
9 Metaproxy is distributed in the hope that it will be useful, but WITHOUT ANY
10 WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 #include "filter_zoom.hpp"
23 #include <metaproxy/package.hpp>
24 #include <metaproxy/util.hpp>
27 #include <libxslt/xsltutils.h>
28 #include <libxslt/transform.h>
30 #include <boost/thread/mutex.hpp>
31 #include <boost/thread/condition.hpp>
34 #include <yaz/oid_db.h>
35 #include <yaz/diagbib1.h>
38 #include <yaz/querytowrbuf.h>
40 namespace mp = metaproxy_1;
41 namespace yf = mp::filter;
43 namespace metaproxy_1 {
45 struct Zoom::Searchable : boost::noncopyable {
46 std::string authentication;
52 std::string query_encoding;
54 std::string request_syntax;
55 std::string element_set;
56 std::string record_encoding;
57 std::string transform_xsl_fname;
60 CCL_bibset ccl_bibset;
64 class Zoom::Backend : boost::noncopyable {
66 friend class Frontend;
68 ZOOM_connection m_connection;
69 ZOOM_resultset m_resultset;
70 std::string m_frontend_database;
72 xsltStylesheetPtr xsp;
74 Backend(SearchablePtr sptr);
76 void connect(std::string zurl, int *error, const char **addinfo);
77 void search_pqf(const char *pqf, Odr_int *hits,
78 int *error, const char **addinfo);
79 void present(Odr_int start, Odr_int number, ZOOM_record *recs,
80 int *error, const char **addinfo);
81 void set_option(const char *name, const char *value);
82 int get_error(const char **addinfo);
84 class Zoom::Frontend : boost::noncopyable {
89 yazpp_1::GDU m_init_gdu;
91 void handle_package(mp::Package &package);
92 void handle_search(mp::Package &package);
93 void handle_present(mp::Package &package);
94 BackendPtr get_backend_from_databases(std::string &database,
96 const char **addinfo);
97 Z_Records *get_records(Odr_int start,
98 Odr_int number_to_present,
100 const char **addinfo,
101 Odr_int *number_of_records_returned,
102 ODR odr, BackendPtr b,
103 Odr_oid *preferredRecordSyntax,
104 const char *element_set_name);
106 Frontend(Impl *impl);
110 friend class Frontend;
114 void process(metaproxy_1::Package & package);
115 void configure(const xmlNode * ptr, bool test_only);
117 FrontendPtr get_frontend(mp::Package &package);
118 void release_frontend(mp::Package &package);
119 SearchablePtr parse_torus(const xmlNode *ptr);
121 std::map<mp::Session, FrontendPtr> m_clients;
122 boost::mutex m_mutex;
123 boost::condition m_cond_session_ready;
124 std::string torus_url;
129 // define Pimpl wrapper forwarding to Impl
131 yf::Zoom::Zoom() : m_p(new Impl)
136 { // must have a destructor because of boost::scoped_ptr
139 void yf::Zoom::configure(const xmlNode *xmlnode, bool test_only)
141 m_p->configure(xmlnode, test_only);
144 void yf::Zoom::process(mp::Package &package) const
146 m_p->process(package);
150 // define Implementation stuff
152 yf::Zoom::Backend::Backend(SearchablePtr ptr) : sptr(ptr)
154 m_connection = ZOOM_connection_create(0);
159 yf::Zoom::Backend::~Backend()
162 xsltFreeStylesheet(xsp);
163 ZOOM_connection_destroy(m_connection);
164 ZOOM_resultset_destroy(m_resultset);
167 void yf::Zoom::Backend::connect(std::string zurl,
168 int *error, const char **addinfo)
170 ZOOM_connection_connect(m_connection, zurl.c_str(), 0);
171 *error = ZOOM_connection_error(m_connection, 0, addinfo);
174 void yf::Zoom::Backend::search_pqf(const char *pqf, Odr_int *hits,
175 int *error, const char **addinfo)
177 m_resultset = ZOOM_connection_search_pqf(m_connection, pqf);
178 *error = ZOOM_connection_error(m_connection, 0, addinfo);
180 *hits = ZOOM_resultset_size(m_resultset);
185 void yf::Zoom::Backend::present(Odr_int start, Odr_int number,
187 int *error, const char **addinfo)
189 ZOOM_resultset_records(m_resultset, recs, start, number);
190 *error = ZOOM_connection_error(m_connection, 0, addinfo);
193 void yf::Zoom::Backend::set_option(const char *name, const char *value)
195 ZOOM_connection_option_set(m_connection, name, value);
197 ZOOM_resultset_option_set(m_resultset, name, value);
200 int yf::Zoom::Backend::get_error(const char **addinfo)
202 return ZOOM_connection_error(m_connection, 0, addinfo);
205 yf::Zoom::Searchable::Searchable()
208 use_turbomarc = true;
209 ccl_bibset = ccl_qual_mk();
212 yf::Zoom::Searchable::~Searchable()
214 ccl_qual_rm(&ccl_bibset);
217 yf::Zoom::Frontend::Frontend(Impl *impl) :
218 m_p(impl), m_is_virtual(false), m_in_use(true)
222 yf::Zoom::Frontend::~Frontend()
226 yf::Zoom::FrontendPtr yf::Zoom::Impl::get_frontend(mp::Package &package)
228 boost::mutex::scoped_lock lock(m_mutex);
230 std::map<mp::Session,yf::Zoom::FrontendPtr>::iterator it;
234 it = m_clients.find(package.session());
235 if (it == m_clients.end())
238 if (!it->second->m_in_use)
240 it->second->m_in_use = true;
243 m_cond_session_ready.wait(lock);
245 FrontendPtr f(new Frontend(this));
246 m_clients[package.session()] = f;
251 void yf::Zoom::Impl::release_frontend(mp::Package &package)
253 boost::mutex::scoped_lock lock(m_mutex);
254 std::map<mp::Session,yf::Zoom::FrontendPtr>::iterator it;
256 it = m_clients.find(package.session());
257 if (it != m_clients.end())
259 if (package.session().is_closed())
265 it->second->m_in_use = false;
267 m_cond_session_ready.notify_all();
271 yf::Zoom::Impl::Impl()
275 yf::Zoom::Impl::~Impl()
279 yf::Zoom::SearchablePtr yf::Zoom::Impl::parse_torus(const xmlNode *ptr1)
281 SearchablePtr notfound;
284 for (ptr1 = ptr1->children; ptr1; ptr1 = ptr1->next)
286 if (ptr1->type != XML_ELEMENT_NODE)
288 if (!strcmp((const char *) ptr1->name, "record"))
290 const xmlNode *ptr2 = ptr1;
291 for (ptr2 = ptr2->children; ptr2; ptr2 = ptr2->next)
293 if (ptr2->type != XML_ELEMENT_NODE)
295 if (!strcmp((const char *) ptr2->name, "layer"))
297 Zoom::SearchablePtr s(new Searchable);
299 const xmlNode *ptr3 = ptr2;
300 for (ptr3 = ptr3->children; ptr3; ptr3 = ptr3->next)
302 if (ptr3->type != XML_ELEMENT_NODE)
304 if (!strcmp((const char *) ptr3->name,
307 s->authentication = mp::xml::get_text(ptr3);
309 else if (!strcmp((const char *) ptr3->name,
312 s->cfAuth = mp::xml::get_text(ptr3);
314 else if (!strcmp((const char *) ptr3->name,
317 s->cfProxy = mp::xml::get_text(ptr3);
319 else if (!strcmp((const char *) ptr3->name,
322 s->cfSubDb = mp::xml::get_text(ptr3);
324 else if (!strcmp((const char *) ptr3->name, "id"))
326 s->database = mp::xml::get_text(ptr3);
328 else if (!strcmp((const char *) ptr3->name, "zurl"))
330 s->target = mp::xml::get_text(ptr3);
332 else if (!strcmp((const char *) ptr3->name, "sru"))
334 s->sru = mp::xml::get_text(ptr3);
336 else if (!strcmp((const char *) ptr3->name,
339 s->query_encoding = mp::xml::get_text(ptr3);
341 else if (!strcmp((const char *) ptr3->name,
344 s->piggyback = mp::xml::get_bool(ptr3, true);
346 else if (!strcmp((const char *) ptr3->name,
349 s->request_syntax = mp::xml::get_text(ptr3);
351 else if (!strcmp((const char *) ptr3->name,
354 s->element_set = mp::xml::get_text(ptr3);
356 else if (!strcmp((const char *) ptr3->name,
359 s->record_encoding = mp::xml::get_text(ptr3);
361 else if (!strcmp((const char *) ptr3->name,
364 s->transform_xsl_fname = mp::xml::get_text(ptr3);
366 else if (!strcmp((const char *) ptr3->name,
369 ; // useTurboMarc is ignored
371 else if (!strncmp((const char *) ptr3->name,
374 std::string value = mp::xml::get_text(ptr3);
375 ccl_qual_fitem(s->ccl_bibset, value.c_str(),
376 (const char *) ptr3->name + 7);
379 if (s->database.length() && s->target.length())
381 yaz_log(YLOG_LOG, "add db=%s target=%s",
382 s->database.c_str(), s->target.c_str());
392 void yf::Zoom::Impl::configure(const xmlNode *ptr, bool test_only)
394 for (ptr = ptr->children; ptr; ptr = ptr->next)
396 if (ptr->type != XML_ELEMENT_NODE)
398 else if (!strcmp((const char *) ptr->name, "torus"))
401 const struct _xmlAttr *attr;
402 for (attr = ptr->properties; attr; attr = attr->next)
404 if (!strcmp((const char *) attr->name, "url"))
405 url = mp::xml::get_text(attr->children);
407 throw mp::filter::FilterException(
408 "Bad attribute " + std::string((const char *)
413 else if (!strcmp((const char *) ptr->name, "records"))
415 yaz_log(YLOG_WARN, "records ignored!");
419 throw mp::filter::FilterException
421 + std::string((const char *) ptr->name)
422 + " in zoom filter");
427 yf::Zoom::BackendPtr yf::Zoom::Frontend::get_backend_from_databases(
428 std::string &database, int *error, const char **addinfo)
430 std::list<BackendPtr>::const_iterator map_it;
431 if (m_backend && m_backend->m_frontend_database == database)
434 xmlDoc *doc = mp::get_searchable(m_p->torus_url, database);
437 *error = YAZ_BIB1_DATABASE_DOES_NOT_EXIST;
438 *addinfo = database.c_str();
442 SearchablePtr sptr = m_p->parse_torus(xmlDocGetRootElement(doc));
446 *error = YAZ_BIB1_DATABASE_DOES_NOT_EXIST;
447 *addinfo = database.c_str();
452 xsltStylesheetPtr xsp = 0;
453 if (sptr->transform_xsl_fname.length())
455 xmlDoc *xsp_doc = xmlParseFile(sptr->transform_xsl_fname.c_str());
458 *error = YAZ_BIB1_TEMPORARY_SYSTEM_ERROR;
459 *addinfo = "xmlParseFile failed";
463 xsp = xsltParseStylesheetDoc(xsp_doc);
466 *error = YAZ_BIB1_DATABASE_DOES_NOT_EXIST;
467 *addinfo = "xsltParseStylesheetDoc failed";
476 BackendPtr b(new Backend(sptr));
480 b->m_frontend_database = database;
481 std::string authentication = sptr->authentication;
483 if (sptr->query_encoding.length())
484 b->set_option("rpnCharset", sptr->query_encoding.c_str());
486 if (sptr->cfAuth.length())
488 b->set_option("user", sptr->cfAuth.c_str());
489 if (authentication.length())
491 size_t found = authentication.find('/');
492 if (found != std::string::npos)
494 cf_parm += "user=" + mp::util::uri_encode(authentication.substr(0, found))
495 + "&password=" + mp::util::uri_encode(authentication.substr(found+1));
498 cf_parm += "user=" + mp::util::uri_encode(authentication);
501 else if (authentication.length())
502 b->set_option("user", authentication.c_str());
504 if (sptr->cfProxy.length())
506 if (cf_parm.length())
508 cf_parm += "proxy=" + mp::util::uri_encode(sptr->cfProxy);
510 if (sptr->cfSubDb.length())
512 if (cf_parm.length())
514 cf_parm += "subdatabase=" + mp::util::uri_encode(sptr->cfSubDb);
518 if (sptr->sru.length())
520 url = "http://" + sptr->target;
521 b->set_option("sru", sptr->sru.c_str());
527 if (cf_parm.length())
529 url += "," + cf_parm;
531 b->connect(url, error, addinfo);
539 Z_Records *yf::Zoom::Frontend::get_records(Odr_int start,
540 Odr_int number_to_present,
542 const char **addinfo,
543 Odr_int *number_of_records_returned,
546 Odr_oid *preferredRecordSyntax,
547 const char *element_set_name)
549 *number_of_records_returned = 0;
550 Z_Records *records = 0;
551 bool enable_pz2_transform = false;
553 if (start < 0 || number_to_present <= 0)
556 if (number_to_present > 10000)
557 number_to_present = 10000;
559 ZOOM_record *recs = (ZOOM_record *)
560 odr_malloc(odr, number_to_present * sizeof(*recs));
562 char oid_name_str[OID_STR_MAX];
563 const char *syntax_name = 0;
565 if (preferredRecordSyntax)
567 if (!oid_oidcmp(preferredRecordSyntax, yaz_oid_recsyn_xml)
568 && element_set_name &&
569 !strcmp(element_set_name, "pz2"))
571 if (b->sptr->request_syntax.length())
573 syntax_name = b->sptr->request_syntax.c_str();
574 enable_pz2_transform = true;
580 yaz_oid_to_string_buf(preferredRecordSyntax, 0, oid_name_str);
584 b->set_option("preferredRecordSyntax", syntax_name);
586 if (enable_pz2_transform)
588 element_set_name = "F";
589 if (b->sptr->element_set.length())
590 element_set_name = b->sptr->element_set.c_str();
593 b->set_option("elementSetName", element_set_name);
595 b->present(start, number_to_present, recs, error, addinfo);
600 for (i = 0; i < number_to_present; i++)
605 { // only return records if no error and at least one record
606 char *odr_database = odr_strdup(odr,
607 b->m_frontend_database.c_str());
608 Z_NamePlusRecordList *npl = (Z_NamePlusRecordList *)
609 odr_malloc(odr, sizeof(*npl));
610 *number_of_records_returned = i;
611 npl->num_records = i;
612 npl->records = (Z_NamePlusRecord **)
613 odr_malloc(odr, i * sizeof(*npl->records));
614 for (i = 0; i < number_to_present; i++)
616 Z_NamePlusRecord *npr = 0;
618 int sur_error = ZOOM_record_error(recs[i], 0 /* msg */,
619 &addinfo, 0 /* diagset */);
623 npr = zget_surrogateDiagRec(odr, odr_database, sur_error,
626 else if (enable_pz2_transform)
628 char rec_type_str[100];
630 strcpy(rec_type_str, b->sptr->use_turbomarc ?
633 // prevent buffer overflow ...
634 if (b->sptr->record_encoding.length() > 0 &&
635 b->sptr->record_encoding.length() <
636 (sizeof(rec_type_str)-20))
638 strcat(rec_type_str, "; charset=");
639 strcat(rec_type_str, b->sptr->record_encoding.c_str());
643 const char *rec_buf = ZOOM_record_get(recs[i], rec_type_str,
645 if (rec_buf && b->xsp)
647 xmlDoc *rec_doc = xmlParseMemory(rec_buf, rec_len);
651 rec_res = xsltApplyStylesheet(b->xsp, rec_doc, 0);
654 xsltSaveResultToString((xmlChar **) &rec_buf, &rec_len,
661 npr = (Z_NamePlusRecord *) odr_malloc(odr, sizeof(*npr));
662 npr->databaseName = odr_database;
663 npr->which = Z_NamePlusRecord_databaseRecord;
664 npr->u.databaseRecord =
665 z_ext_record_xml(odr, rec_buf, rec_len);
669 npr = zget_surrogateDiagRec(
671 YAZ_BIB1_SYSTEM_ERROR_IN_PRESENTING_RECORDS,
678 (Z_External *) ZOOM_record_get(recs[i], "ext", 0);
681 npr = (Z_NamePlusRecord *) odr_malloc(odr, sizeof(*npr));
682 npr->databaseName = odr_database;
683 npr->which = Z_NamePlusRecord_databaseRecord;
684 npr->u.databaseRecord = ext;
688 npr = zget_surrogateDiagRec(
690 YAZ_BIB1_SYSTEM_ERROR_IN_PRESENTING_RECORDS,
691 "ZOOM_record, type ext");
694 npl->records[i] = npr;
696 records = (Z_Records*) odr_malloc(odr, sizeof(*records));
697 records->which = Z_Records_DBOSD;
698 records->u.databaseOrSurDiagnostics = npl;
704 void yf::Zoom::Frontend::handle_search(mp::Package &package)
706 Z_GDU *gdu = package.request().get();
707 Z_APDU *apdu_req = gdu->u.z3950;
708 Z_APDU *apdu_res = 0;
710 Z_SearchRequest *sr = apdu_req->u.searchRequest;
711 if (sr->num_databaseNames != 1)
713 apdu_res = odr.create_searchResponse(
714 apdu_req, YAZ_BIB1_TOO_MANY_DATABASES_SPECIFIED, 0);
715 package.response() = apdu_res;
720 const char *addinfo = 0;
721 std::string db(sr->databaseNames[0]);
722 BackendPtr b = get_backend_from_databases(db, &error, &addinfo);
726 odr.create_searchResponse(
727 apdu_req, error, addinfo);
728 package.response() = apdu_res;
732 b->set_option("setname", "default");
735 Z_Query *query = sr->query;
739 if (query->which == Z_Query_type_1 || query->which == Z_Query_type_101)
742 pqf_wrbuf = wrbuf_alloc();
743 yaz_rpnquery_to_wrbuf(pqf_wrbuf, query->u.type_1);
745 else if (query->which == Z_Query_type_2)
748 ccl_wrbuf = wrbuf_alloc();
749 wrbuf_write(ccl_wrbuf, (const char *) query->u.type_2->buf,
750 query->u.type_2->len);
752 else if (query->which == Z_Query_type_104 &&
753 query->u.type_104->which == Z_External_CQL)
756 const char *cql = query->u.type_104->u.cql;
757 CQL_parser cp = cql_parser_create();
758 int r = cql_parser_string(cp, cql);
761 cql_parser_destroy(cp);
763 odr.create_searchResponse(apdu_req,
764 YAZ_BIB1_MALFORMED_QUERY,
766 package.response() = apdu_res;
769 struct cql_node *cn = cql_parser_result(cp);
772 r = cql_to_ccl_buf(cn, ccl_buf, sizeof(ccl_buf));
773 yaz_log(YLOG_LOG, "cql_to_ccl_buf returned %d", r);
776 ccl_wrbuf = wrbuf_alloc();
777 wrbuf_puts(ccl_wrbuf, ccl_buf);
779 cql_parser_destroy(cp);
783 odr.create_searchResponse(apdu_req,
784 YAZ_BIB1_MALFORMED_QUERY,
785 "CQL to CCL conversion error");
786 package.response() = apdu_res;
793 odr.create_searchResponse(apdu_req, YAZ_BIB1_QUERY_TYPE_UNSUPP, 0);
794 package.response() = apdu_res;
801 assert(pqf_wrbuf == 0);
803 struct ccl_rpn_node *cn;
804 cn = ccl_find_str(b->sptr->ccl_bibset, wrbuf_cstr(ccl_wrbuf),
806 wrbuf_destroy(ccl_wrbuf);
809 char *addinfo = odr_strdup(odr, ccl_err_msg(cerror));
812 odr.create_searchResponse(apdu_req,
813 YAZ_BIB1_MALFORMED_QUERY,
815 package.response() = apdu_res;
818 pqf_wrbuf = wrbuf_alloc();
819 ccl_pquery(pqf_wrbuf, cn);
824 b->search_pqf(wrbuf_cstr(pqf_wrbuf), &hits, &error, &addinfo);
826 wrbuf_destroy(pqf_wrbuf);
828 const char *element_set_name = 0;
829 Odr_int number_to_present = 0;
831 mp::util::piggyback_sr(sr, hits, number_to_present, &element_set_name);
833 Odr_int number_of_records_returned = 0;
834 Z_Records *records = get_records(
835 0, number_to_present, &error, &addinfo,
836 &number_of_records_returned, odr, b, sr->preferredRecordSyntax,
838 apdu_res = odr.create_searchResponse(apdu_req, error, addinfo);
841 apdu_res->u.searchResponse->records = records;
842 apdu_res->u.searchResponse->numberOfRecordsReturned =
843 odr_intdup(odr, number_of_records_returned);
845 apdu_res->u.searchResponse->resultCount = odr_intdup(odr, hits);
846 package.response() = apdu_res;
849 void yf::Zoom::Frontend::handle_present(mp::Package &package)
851 Z_GDU *gdu = package.request().get();
852 Z_APDU *apdu_req = gdu->u.z3950;
853 Z_APDU *apdu_res = 0;
854 Z_PresentRequest *pr = apdu_req->u.presentRequest;
859 package.response() = odr.create_presentResponse(
860 apdu_req, YAZ_BIB1_SPECIFIED_RESULT_SET_DOES_NOT_EXIST, 0);
863 const char *element_set_name = 0;
864 Z_RecordComposition *comp = pr->recordComposition;
865 if (comp && comp->which != Z_RecordComp_simple)
867 package.response() = odr.create_presentResponse(
869 YAZ_BIB1_PRESENT_COMP_SPEC_PARAMETER_UNSUPP, 0);
872 if (comp && comp->u.simple->which == Z_ElementSetNames_generic)
873 element_set_name = comp->u.simple->u.generic;
874 Odr_int number_of_records_returned = 0;
876 const char *addinfo = 0;
877 Z_Records *records = get_records(
878 *pr->resultSetStartPoint - 1, *pr->numberOfRecordsRequested,
879 &error, &addinfo, &number_of_records_returned, odr, m_backend,
880 pr->preferredRecordSyntax, element_set_name);
882 apdu_res = odr.create_presentResponse(apdu_req, error, addinfo);
885 apdu_res->u.presentResponse->records = records;
886 apdu_res->u.presentResponse->numberOfRecordsReturned =
887 odr_intdup(odr, number_of_records_returned);
889 package.response() = apdu_res;
892 void yf::Zoom::Frontend::handle_package(mp::Package &package)
894 Z_GDU *gdu = package.request().get();
897 else if (gdu->which == Z_GDU_Z3950)
899 Z_APDU *apdu_req = gdu->u.z3950;
900 if (apdu_req->which == Z_APDU_initRequest)
903 package.response() = odr.create_close(
905 Z_Close_protocolError,
908 else if (apdu_req->which == Z_APDU_searchRequest)
910 handle_search(package);
912 else if (apdu_req->which == Z_APDU_presentRequest)
914 handle_present(package);
919 package.response() = odr.create_close(
921 Z_Close_protocolError,
922 "zoom filter cannot handle this APDU");
923 package.session().close();
928 package.session().close();
932 void yf::Zoom::Impl::process(mp::Package &package)
934 FrontendPtr f = get_frontend(package);
935 Z_GDU *gdu = package.request().get();
939 f->handle_package(package);
941 else if (gdu && gdu->which == Z_GDU_Z3950 && gdu->u.z3950->which ==
944 Z_InitRequest *req = gdu->u.z3950->u.initRequest;
948 Z_APDU *apdu = odr.create_initResponse(gdu->u.z3950, 0, 0);
949 Z_InitResponse *resp = apdu->u.initResponse;
952 static const int masks[] = {
957 for (i = 0; masks[i] != -1; i++)
958 if (ODR_MASK_GET(req->options, masks[i]))
959 ODR_MASK_SET(resp->options, masks[i]);
961 static const int versions[] = {
967 for (i = 0; versions[i] != -1; i++)
968 if (ODR_MASK_GET(req->protocolVersion, versions[i]))
969 ODR_MASK_SET(resp->protocolVersion, versions[i]);
973 *resp->preferredMessageSize = *req->preferredMessageSize;
974 *resp->maximumRecordSize = *req->maximumRecordSize;
976 package.response() = apdu;
977 f->m_is_virtual = true;
982 release_frontend(package);
986 static mp::filter::Base* filter_creator()
988 return new mp::filter::Zoom;
992 struct metaproxy_1_filter_struct metaproxy_1_filter_zoom = {
1003 * c-file-style: "Stroustrup"
1004 * indent-tabs-mode: nil
1006 * vim: shiftwidth=4 tabstop=8 expandtab