Changed the way implementationName - and version is set.
[yaz-moved-to-github.git] / include / prt-ext.h
index 5fb4729..7ae8da2 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1995, Index Data.
+ * Copyright (c) 1995-1999, Index Data.
  *
  * Permission to use, copy, modify, distribute, and sell this software and
  * its documentation, in whole or in part, for any purpose, is hereby granted,
 #define PRT_EXT_H
 
 #include <yconfig.h>
+#include <oid.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 /*
  * Used to keep track of known External definitions (a loose approach
@@ -71,6 +76,8 @@ struct Z_External
 #define Z_External_OPAC 14
 #define Z_External_searchResult1 15
 #define Z_External_update 16
+#define Z_External_dateTime 17
+#define Z_External_universeReport 18
     union
     {
        /* Generic types */
@@ -92,10 +99,18 @@ struct Z_External
        Z_BriefBib *summary;
        Z_SearchInfoReport *searchResult1;
        Z_IUUpdate *update;
+       Z_DateTime *dateTime;
+    Z_UniverseReport *universeReport;
     } 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, const char *name);
+YAZ_EXPORT Z_ext_typeent *z_ext_getentbyref(oid_value val);
+YAZ_EXPORT Z_External *z_ext_record(ODR o, int format, const char *buf,
+                                   int len);
+
+#ifdef __cplusplus
+}
+#endif
 
 #endif