2 \brief ASN.1 Module UserInfoFormat-multipleSearchTerms-2
4 Generated automatically by YAZ ASN.1 Compiler 0.4
7 #include <yaz/z-mterm2.h>
9 int z_MultipleSearchTerms_2_s (ODR o, Z_MultipleSearchTerms_2_s **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_explicit_tag (o, z_Term,
15 &(*p)->term, ODR_CONTEXT, 1, 0, "term") &&
16 odr_implicit_tag (o, odr_bool,
17 &(*p)->flag, ODR_CONTEXT, 2, 1, "flag") &&
21 int z_MultipleSearchTerms_2 (ODR o, Z_MultipleSearchTerms_2 **p, int opt, const char *name)
23 if (!odr_initmember (o, p, sizeof(**p)))
24 return odr_missing(o, opt, name);
25 if (odr_sequence_of (o, (Odr_fun) z_MultipleSearchTerms_2_s, &(*p)->elements,
28 if(o->direction == ODR_DECODE)
30 return odr_missing(o, opt, name);