Added EXTERNAL handling for item update0 (1.0).
[yaz-moved-to-github.git] / include / yaz / prt-ext.h
index 5d7f6be..5d78106 100644 (file)
@@ -35,9 +35,8 @@
 #include <yaz/yconfig.h>
 #include <yaz/oid.h>
 
-#ifdef __cplusplus
-extern "C" {
-#endif
+
+YAZ_BEGIN_CDECL
 
 /*
  * Used to keep track of known External definitions (a loose approach
@@ -78,6 +77,8 @@ struct Z_External
 #define Z_External_update 16
 #define Z_External_dateTime 17
 #define Z_External_universeReport 18
+#define Z_External_ESAdmin 19
+#define Z_External_update0 20
     union
     {
        /* Generic types */
@@ -100,17 +101,20 @@ struct Z_External
        Z_SearchInfoReport *searchResult1;
        Z_IUUpdate *update;
        Z_DateTime *dateTime;
-    Z_UniverseReport *universeReport;
+        Z_UniverseReport *universeReport;
+#ifdef ASN_COMPILED
+        Z_Admin *adminService;
+       Z_IU0Update *update0;
+#endif
     } u;
 };
 
+
 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
+YAZ_END_CDECL
 
 #endif