New attribute "backendtype" for syntax section which specifies record
[yazproxy-moved-to-github.git] / include / yazproxy / proxy.h
index 2936c1a..9c87ab8 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: proxy.h,v 1.4 2004-04-22 07:46:21 adam Exp $
+/* $Id: proxy.h,v 1.5 2004-08-10 09:02:16 adam Exp $
    Copyright (c) 1998-2004, Index Data.
 
 This file is part of the yaz-proxy.
@@ -71,7 +71,8 @@ public:
     int check_query(ODR odr, const char *name, Z_Query *query, char **addinfo);
     int check_syntax(ODR odr, const char *name,
                     Odr_oid *syntax, Z_RecordComposition *comp,
-                    char **addinfo, char **stylesheet, char **schema);
+                    char **addinfo, char **stylesheet, char **schema,
+                    char **backend_type);
     char *get_explain(ODR odr, const char *name, const char *db,
                      int *len);
 private:
@@ -208,6 +209,9 @@ class YAZ_EXPORT Yaz_Proxy : public Yaz_Z_Assoc {
     Z_APDU *m_stylesheet_apdu;
     Z_NamePlusRecordList *m_stylesheet_nprl;
     char *m_schema;
+    char *m_backend_type;
+    int m_frontend_type;
+    void convert_to_frontend_type(Z_NamePlusRecordList *p);
     void convert_to_marcxml(Z_NamePlusRecordList *p);
     int convert_xsl(Z_NamePlusRecordList *p, Z_APDU *apdu);
     void convert_xsl_delay();