X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;ds=sidebyside;f=asn%2Fprt-ext.c;h=aac6bfc5d2a22c06fc671fb1c89683fd98d6fa05;hb=88941d4a9e272daca9323cd19bf4829b6d32871b;hp=a7773ab8062d47f0261d950a33b7b2c01cb9d4fa;hpb=bf6c973ee6b5864bdb95d7d953fdcac75ea1b060;p=yaz-moved-to-github.git diff --git a/asn/prt-ext.c b/asn/prt-ext.c index a7773ab..aac6bfc 100644 --- a/asn/prt-ext.c +++ b/asn/prt-ext.c @@ -4,7 +4,19 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: prt-ext.c,v $ - * Revision 1.9 1996-06-10 08:53:36 quinn + * Revision 1.13 1997-05-14 06:53:22 adam + * C++ support. + * + * Revision 1.12 1997/04/30 08:52:02 quinn + * Null + * + * Revision 1.11 1996/10/10 12:35:13 quinn + * Added Update extended service. + * + * Revision 1.10 1996/10/09 15:54:55 quinn + * Added SearchInfoReport + * + * Revision 1.9 1996/06/10 08:53:36 quinn * Added Summary,OPAC,ResourceReport * * Revision 1.8 1996/02/20 12:51:44 quinn @@ -55,6 +67,8 @@ static Z_ext_typeent type_table[] = {VAL_ESPEC1, Z_External_espec1, z_Espec1}, {VAL_SUMMARY, Z_External_summary, z_BriefBib}, {VAL_OPAC, Z_External_OPAC, z_OPACRecord}, + {VAL_SEARCHRES1, Z_External_searchResult1, z_SearchInfoReport}, + {VAL_DBUPDATE, Z_External_update, z_IUUpdate}, {VAL_NONE, 0, 0} }; @@ -96,6 +110,9 @@ int z_External(ODR o, Z_External **p, int opt) {ODR_EXPLICIT, ODR_CONTEXT, 0, Z_External_espec1, z_Espec1}, {ODR_EXPLICIT, ODR_CONTEXT, 0, Z_External_summary, z_BriefBib}, {ODR_EXPLICIT, ODR_CONTEXT, 0, Z_External_OPAC, z_OPACRecord}, + {ODR_EXPLICIT, ODR_CONTEXT, 0, Z_External_searchResult1, + z_SearchInfoReport}, + {ODR_EXPLICIT, ODR_CONTEXT, 0, Z_External_update}, {-1, -1, -1, -1, 0} }; @@ -113,14 +130,14 @@ int z_External(ODR o, Z_External **p, int opt) (oid = oid_getentbyoid((*p)->direct_reference)) && (type = z_ext_getentbyref(oid->value))) { - int class, tag, cons; + int zclass, tag, cons; /* * We know it. If it's represented as an ASN.1 type, bias the CHOICE. */ - if (!odr_peektag(o, &class, &tag, &cons)) + if (!odr_peektag(o, &zclass, &tag, &cons)) return opt && odr_ok(o); - if (class == ODR_CONTEXT && tag == 0 && cons == 1) + if (zclass == ODR_CONTEXT && tag == 0 && cons == 1) odr_choice_bias(o, type->what); } return