X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=asn%2Fprt-rsc.c;h=5b7eb1760a2bdfdcf73fcdafa7fbc059a9653a87;hp=f3acf35523806bf5b76d709daba13f8ce6747d17;hb=6edc916a5a8d44e1d7708f5018828e0d2020690b;hpb=f45eb9a4844db2509e24e38a043625310c1e32a1 diff --git a/asn/prt-rsc.c b/asn/prt-rsc.c index f3acf35..5b7eb17 100644 --- a/asn/prt-rsc.c +++ b/asn/prt-rsc.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: prt-rsc.c,v $ - * Revision 1.2 1995-06-01 14:34:53 quinn + * Revision 1.3 1995-06-02 09:49:15 quinn + * Adding access control + * + * Revision 1.2 1995/06/01 14:34:53 quinn * Work * * Revision 1.1 1995/06/01 11:22:17 quinn @@ -17,7 +20,7 @@ /* -------------------- Resource 1 ------------------------- */ -int z_Estimate1(ODR o, Z_Estimate1, int opt) +int z_Estimate1(ODR o, Z_Estimate1 **p, int opt) { if (!odr_sequence_begin(o, p, sizeof(**p))) return opt && odr_ok(o); @@ -25,7 +28,7 @@ int z_Estimate1(ODR o, Z_Estimate1, int opt) odr_implicit(o, odr_integer, &(*p)->type, ODR_CONTEXT, 1, 0) && odr_implicit(o, odr_integer, &(*p)->value, ODR_CONTEXT, 2, 0) && odr_implicit(o, odr_integer, &(*p)->currencyCode, ODR_CONTEXT, 3, 1) && - odr_sequence-end(o); + odr_sequence_end(o); } int z_ResourceReport1(ODR o, Z_ResourceReport1 **p, int opt) @@ -42,12 +45,15 @@ int z_ResourceReport1(ODR o, Z_ResourceReport1 **p, int opt) /* -------------------- Resource 2 ------------------------- */ +int z_StringOrNumeric(ODR, Z_StringOrNumeric **, int); +int z_IntUnit(ODR, Z_IntUnit **, int); + int z_Estimate2(ODR o, Z_Estimate2 **p, int opt) { if (!odr_sequence_begin(o, p, sizeof(**p))) return opt && odr_ok(o); return - odr_implicit(o, z_StringorNumeric, &(*p)->type, ODR_CONTEXT, 1, 0) && + odr_explicit(o, z_StringOrNumeric, &(*p)->type, ODR_CONTEXT, 1, 0) && odr_implicit(o, z_IntUnit, &(*p)->value, ODR_CONTEXT, 2, 0) && odr_sequence_end(o); }