X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fyaz%2Fprt-ext.h;h=d3e5bf806de2f88a7eb845af12504ff4be2d4fff;hb=8e4eabe621f8b8195faa6625a38a2e1ae7b68aa1;hp=5d7f6beba9f16619c3eeb9ac034d0add03add2a1;hpb=d9ee01635f03f9095a66f71b73580560d48798e8;p=yaz-moved-to-github.git diff --git a/include/yaz/prt-ext.h b/include/yaz/prt-ext.h index 5d7f6be..d3e5bf8 100644 --- a/include/yaz/prt-ext.h +++ b/include/yaz/prt-ext.h @@ -35,9 +35,8 @@ #include #include -#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