Updated tagset-G and M.
[yaz-moved-to-github.git] / include / prt-ext.h
index dccd86b..b01c8d8 100644 (file)
 #define PRT_EXT_H
 
 #include <yconfig.h>
+#include <prt-dat.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 /*
  * Used to keep track of known External definitions (a loose approach
@@ -69,6 +74,9 @@ struct Z_External
 #define Z_External_espec1 12
 #define Z_External_summary 13
 #define Z_External_OPAC 14
+#define Z_External_searchResult1 15
+#define Z_External_update 16
+#define Z_External_dateTime 17
     union
     {
        /* Generic types */
@@ -88,10 +96,17 @@ struct Z_External
        Z_DiagnosticFormat *diag1;
        Z_Espec1 *espec1;
        Z_BriefBib *summary;
+       Z_SearchInfoReport *searchResult1;
+       Z_IUUpdate *update;
+       Z_DateTime *dateTime;
     } u;
 };
 
-int z_External(ODR o, Z_External **p, int opt);
-Z_ext_typeent *z_ext_getentbyref(oid_value val);
+YAZ_EXPORT int z_External(ODR o, Z_External **p, int opt);
+YAZ_EXPORT Z_ext_typeent *z_ext_getentbyref(oid_value val);
+
+#ifdef __cplusplus
+}
+#endif
 
 #endif