Avoid redundant YAZ includes.
[yaz4j-moved-to-github.git] / dependencies / yaz-2.1.28 / src / z-rrf2.c
1 /** \file z-rrf2.c
2     \brief ASN.1 Module ResourceReport-Format-Resource-2
3
4     Generated automatically by YAZ ASN.1 Compiler 0.4
5 */
6
7 #include <yaz/z-rrf2.h>
8
9 int z_ResourceReport2 (ODR o, Z_ResourceReport2 **p, int opt, const char *name)
10 {
11         if (!odr_sequence_begin (o, p, sizeof(**p), name))
12                 return odr_missing(o, opt, name) && odr_ok (o);
13         return
14                 odr_implicit_settag (o, ODR_CONTEXT, 1) &&
15                 (odr_sequence_of(o, (Odr_fun) z_Estimate2, &(*p)->estimates,
16                   &(*p)->num_estimates, "estimates") || odr_ok(o)) &&
17                 odr_implicit_tag (o, z_InternationalString,
18                         &(*p)->message, ODR_CONTEXT, 2, 1, "message") &&
19                 odr_sequence_end (o);
20 }
21
22 int z_Estimate2 (ODR o, Z_Estimate2 **p, int opt, const char *name)
23 {
24         if (!odr_sequence_begin (o, p, sizeof(**p), name))
25                 return odr_missing(o, opt, name) && odr_ok (o);
26         return
27                 odr_explicit_tag (o, z_StringOrNumeric,
28                         &(*p)->type, ODR_CONTEXT, 1, 0, "type") &&
29                 odr_implicit_tag (o, z_IntUnit,
30                         &(*p)->value, ODR_CONTEXT, 2, 0, "value") &&
31                 odr_sequence_end (o);
32 }