2 \brief ASN.1 Module ResourceReport-Format-Resource-1
4 Generated automatically by YAZ ASN.1 Compiler 0.4
7 #include <yaz/z-rrf1.h>
9 int z_ResourceReport1 (ODR o, Z_ResourceReport1 **p, int opt, const char *name)
11 if (!odr_sequence_begin (o, p, sizeof(**p), name))
12 return odr_missing(o, opt, name) && odr_ok (o);
14 odr_implicit_settag (o, ODR_CONTEXT, 1) &&
15 odr_sequence_of(o, (Odr_fun) z_Estimate1, &(*p)->estimates,
16 &(*p)->num_estimates, "estimates") &&
17 odr_implicit_tag (o, z_InternationalString,
18 &(*p)->message, ODR_CONTEXT, 2, 0, "message") &&
22 int z_Estimate1 (ODR o, Z_Estimate1 **p, int opt, const char *name)
24 if (!odr_sequence_begin (o, p, sizeof(**p), name))
25 return odr_missing(o, opt, name) && odr_ok (o);
27 odr_implicit_tag (o, z_EstimateType,
28 &(*p)->type, ODR_CONTEXT, 1, 0, "type") &&
29 odr_implicit_tag (o, odr_integer,
30 &(*p)->value, ODR_CONTEXT, 2, 0, "value") &&
31 odr_implicit_tag (o, odr_integer,
32 &(*p)->currency_code, ODR_CONTEXT, 3, 1, "currency_code") &&
36 int z_EstimateType (ODR o, Z_EstimateType **p, int opt, const char *name)
38 return odr_integer (o, p, opt, name);