2 \brief ASN.1 Module ESFormat-PersistentResultSet
4 Generated automatically by YAZ ASN.1 Compiler 0.4
7 #include <yaz/zes-pset.h>
9 int z_PRPersistentResultSetEsRequest (ODR o, Z_PRPersistentResultSetEsRequest **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_tag (o, odr_null,
15 &(*p)->toKeep, ODR_CONTEXT, 1, 0, "toKeep") &&
16 odr_explicit_tag (o, z_PROriginPartNotToKeep,
17 &(*p)->notToKeep, ODR_CONTEXT, 2, 1, "notToKeep") &&
21 int z_PRPersistentResultSetTaskPackage (ODR o, Z_PRPersistentResultSetTaskPackage **p, int opt, const char *name)
23 if (!odr_sequence_begin (o, p, sizeof(**p), name))
24 return odr_missing(o, opt, name) && odr_ok (o);
26 odr_implicit_tag (o, odr_null,
27 &(*p)->originPart, ODR_CONTEXT, 1, 0, "originPart") &&
28 odr_explicit_tag (o, z_PRTargetPart,
29 &(*p)->targetPart, ODR_CONTEXT, 2, 1, "targetPart") &&
33 int z_PRPersistentResultSet (ODR o, Z_PRPersistentResultSet **p, int opt, const char *name)
35 static Odr_arm arm[] = {
36 {ODR_IMPLICIT, ODR_CONTEXT, 1, Z_PRPersistentResultSet_esRequest,
37 (Odr_fun) z_PRPersistentResultSetEsRequest, "esRequest"},
38 {ODR_IMPLICIT, ODR_CONTEXT, 2, Z_PRPersistentResultSet_taskPackage,
39 (Odr_fun) z_PRPersistentResultSetTaskPackage, "taskPackage"},
40 {-1, -1, -1, -1, (Odr_fun) 0, 0}
42 if (!odr_initmember(o, p, sizeof(**p)))
43 return odr_missing(o, opt, name);
44 if (odr_choice(o, arm, &(*p)->u, &(*p)->which, name))
46 if(o->direction == ODR_DECODE)
48 return odr_missing(o, opt, name);
51 int z_PROriginPartNotToKeep (ODR o, Z_PROriginPartNotToKeep **p, int opt, const char *name)
53 if (!odr_sequence_begin (o, p, sizeof(**p), name))
54 return odr_missing(o, opt, name) && odr_ok (o);
56 odr_implicit_tag (o, z_InternationalString,
57 &(*p)->originSuppliedResultSet, ODR_CONTEXT, 1, 1, "originSuppliedResultSet") &&
58 odr_implicit_tag (o, odr_integer,
59 &(*p)->replaceOrAppend, ODR_CONTEXT, 2, 1, "replaceOrAppend") &&
63 int z_PRTargetPart (ODR o, Z_PRTargetPart **p, int opt, const char *name)
65 if (!odr_sequence_begin (o, p, sizeof(**p), name))
66 return odr_missing(o, opt, name) && odr_ok (o);
68 odr_implicit_tag (o, z_InternationalString,
69 &(*p)->targetSuppliedResultSet, ODR_CONTEXT, 1, 1, "targetSuppliedResultSet") &&
70 odr_implicit_tag (o, odr_integer,
71 &(*p)->numberOfRecords, ODR_CONTEXT, 2, 1, "numberOfRecords") &&