Optional CCL module. Moved atoi_n to marcdisp.h from yaz-util.h.
[yaz-moved-to-github.git] / include / yaz / prt-ext.h
index 5d7f6be..d3e5bf8 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,7 @@ struct Z_External
 #define Z_External_update 16
 #define Z_External_dateTime 17
 #define Z_External_universeReport 18
+#define Z_External_ESAdmin 19
     union
     {
        /* Generic types */
@@ -100,17 +100,19 @@ struct Z_External
        Z_SearchInfoReport *searchResult1;
        Z_IUUpdate *update;
        Z_DateTime *dateTime;
-    Z_UniverseReport *universeReport;
+        Z_UniverseReport *universeReport;
+#ifdef ASN_COMPILED
+        Z_Admin *adminService;
+#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