+
+/* ----------------------- ITEM UPDATE -------------------- */
+
+int z_IUSuppliedRecordsId (ODR o, Z_IUSuppliedRecordsId **p, int opt,
+ const char *name)
+{
+ static Odr_arm arm[] = {
+ {ODR_IMPLICIT, ODR_CONTEXT, 1, Z_IUSuppliedRecordsId_timeStamp,
+ odr_generalizedtime, 0},
+ {ODR_IMPLICIT, ODR_CONTEXT, 2, Z_IUSuppliedRecordsId_versionNumber,
+ z_InternationalString, 0},
+ {ODR_IMPLICIT, ODR_CONTEXT, 3, Z_IUSuppliedRecordsId_previousVersion,
+ (Odr_fun)odr_external, 0},
+ {-1, -1, -1, -1, 0, 0}
+ };
+ if (!odr_initmember(o, p, sizeof(**p)))
+ return opt && odr_ok(o);
+ if (odr_choice(o, arm, &(*p)->u, &(*p)->which, 0))
+ return 1;
+ *p = 0;
+ return opt && odr_ok(o);
+}
+
+int z_IUCorrelationInfo (ODR o, Z_IUCorrelationInfo **p, int opt,
+ const char *name)
+{
+ if (!odr_sequence_begin (o, p, sizeof(**p), 0))
+ return opt && odr_ok (o);
+ return
+ odr_implicit (o, z_InternationalString,
+ &(*p)->note, ODR_CONTEXT, 1, 1) &&
+ odr_implicit (o, odr_integer,
+ &(*p)->id, ODR_CONTEXT, 2, 1) &&
+ odr_sequence_end (o);
+}
+
+int z_IUSuppliedRecords_elem (ODR o, Z_IUSuppliedRecords_elem **p, int opt,
+ const char *name)
+{
+ static Odr_arm arm[] = {
+ {ODR_IMPLICIT, ODR_CONTEXT, 1, Z_IUSuppliedRecords_number,
+ (Odr_fun)odr_integer, 0},
+ {ODR_IMPLICIT, ODR_CONTEXT, 2, Z_IUSuppliedRecords_string,
+ (Odr_fun)z_InternationalString, 0},
+ {ODR_IMPLICIT, ODR_CONTEXT, 3, Z_IUSuppliedRecords_opaque,
+ (Odr_fun)odr_octetstring, 0},
+ {-1, -1, -1, -1, 0, 0}
+ };
+ if (!odr_sequence_begin (o, p, sizeof(**p), 0))
+ return opt && odr_ok (o);
+ return
+ ((odr_constructed_begin (o, &(*p)->u, ODR_CONTEXT, 1, 0) &&
+ odr_choice (o, arm, &(*p)->u, &(*p)->which, 0) &&
+ odr_constructed_end (o)) || odr_ok(o)) &&
+ odr_explicit (o, z_IUSuppliedRecordsId,
+ &(*p)->supplementalId, ODR_CONTEXT, 2, 1) &&
+ odr_implicit (o, z_IUCorrelationInfo,
+ &(*p)->correlationInfo, ODR_CONTEXT, 3, 1) &&
+ odr_implicit (o, z_External,
+ &(*p)->record, ODR_CONTEXT, 4, 0) &&
+ odr_sequence_end (o);
+}
+
+int z_IUSuppliedRecords (ODR o, Z_IUSuppliedRecords **p, int opt,
+ const char *name)
+{
+ if (!odr_initmember (o, p, sizeof(**p)))
+ return opt && odr_ok(o);
+ if (odr_sequence_of (o, (Odr_fun)z_IUSuppliedRecords_elem, &(*p)->elements,
+ &(*p)->num, 0))
+ return 1;
+ *p = 0;
+ return opt && odr_ok(o);
+}
+
+int z_IUTaskPackageRecordStructure (ODR o, Z_IUTaskPackageRecordStructure **p,
+ int opt, const char *name)
+{
+ static Odr_arm arm[] = {
+ {ODR_IMPLICIT, ODR_CONTEXT, 1, Z_IUTaskPackageRecordStructure_record,
+ (Odr_fun)odr_external, 0},
+ {ODR_EXPLICIT, ODR_CONTEXT, 2,
+ Z_IUTaskPackageRecordStructure_surrogateDiagnostics,
+ (Odr_fun)z_DiagRecs, 0},
+ {-1, -1, -1, -1, 0, 0}
+ };
+ if (!odr_sequence_begin (o, p, sizeof(**p), 0))
+ return opt && odr_ok (o);
+ return
+ ((odr_constructed_begin (o, &(*p)->u, ODR_CONTEXT, 1, 0) &&
+ odr_choice (o, arm, &(*p)->u, &(*p)->which, 0) &&
+ odr_constructed_end (o)) || odr_ok(o)) &&
+ odr_implicit (o, z_IUCorrelationInfo,
+ &(*p)->correlationInfo, ODR_CONTEXT, 2, 1) &&
+ odr_implicit (o, odr_integer,
+ &(*p)->recordStatus, ODR_CONTEXT, 3, 0) &&
+ odr_implicit (o, z_DiagRecs,
+ &(*p)->supplementalDiagnostics, ODR_CONTEXT, 4, 1) &&
+ odr_sequence_end (o);
+}
+
+int z_IUOriginPartToKeep (ODR o, Z_IUOriginPartToKeep **p, int opt,
+ const char *name)
+{
+ if (!odr_sequence_begin (o, p, sizeof(**p), 0))
+ return opt && odr_ok (o);
+ return
+ odr_implicit (o, odr_integer,
+ &(*p)->action, ODR_CONTEXT, 1, 0) &&
+ odr_implicit (o, z_InternationalString,
+ &(*p)->databaseName, ODR_CONTEXT, 2, 0) &&
+ odr_implicit (o, odr_oid,
+ &(*p)->schema, ODR_CONTEXT, 3, 1) &&
+ odr_implicit (o, z_InternationalString,
+ &(*p)->elementSetName, ODR_CONTEXT, 4, 1) &&
+ odr_implicit (o, odr_external,
+ &(*p)->actionQualifier, ODR_CONTEXT, 5, 1) &&
+ odr_sequence_end (o);
+}
+
+int z_IUTargetPart (ODR o, Z_IUTargetPart **p, int opt, const char *name)
+{
+ if (!odr_sequence_begin (o, p, sizeof(**p), 0))
+ return opt && odr_ok (o);
+ return
+ odr_implicit (o, odr_integer,
+ &(*p)->updateStatus, ODR_CONTEXT, 1, 0) &&
+ odr_implicit_settag (o, ODR_CONTEXT, 2) &&
+ (odr_sequence_of(o, (Odr_fun)z_DiagRec, &(*p)->globalDiagnostics,
+ &(*p)->num_globalDiagnostics, 0) || odr_ok(o)) &&
+ odr_implicit_settag (o, ODR_CONTEXT, 3) &&
+ odr_sequence_of(o, (Odr_fun)z_IUTaskPackageRecordStructure,
+ &(*p)->taskPackageRecords,
+ &(*p)->num_taskPackageRecords, 0) &&
+ odr_sequence_end (o);
+}
+
+int z_IUUpdateEsRequest (ODR o, Z_IUUpdateEsRequest **p, int opt,
+ const char *name)
+{
+ if (!odr_sequence_begin (o, p, sizeof(**p), 0))
+ return opt && odr_ok (o);
+ return
+ odr_explicit (o, z_IUOriginPartToKeep,
+ &(*p)->toKeep, ODR_CONTEXT, 1, 0) &&
+ odr_explicit (o, z_IUSuppliedRecords,
+ &(*p)->notToKeep, ODR_CONTEXT, 2, 0) &&
+ odr_sequence_end (o);
+}
+
+int z_IUUpdateTaskPackage (ODR o, Z_IUUpdateTaskPackage **p, int opt,
+ const char *name)
+{
+ if (!odr_sequence_begin (o, p, sizeof(**p), 0))
+ return opt && odr_ok (o);
+ return
+ odr_explicit (o, z_IUOriginPartToKeep,
+ &(*p)->originPart, ODR_CONTEXT, 1, 0) &&
+ odr_explicit (o, z_IUTargetPart,
+ &(*p)->targetPart, ODR_CONTEXT, 2, 0) &&
+ odr_sequence_end (o);
+}
+
+int z_IUUpdate (ODR o, Z_IUUpdate **p, int opt, const char *name)
+{
+ static Odr_arm arm[] = {
+ {ODR_IMPLICIT, ODR_CONTEXT, 1, Z_IUUpdate_esRequest,
+ (Odr_fun)z_IUUpdateEsRequest, 0},
+ {ODR_IMPLICIT, ODR_CONTEXT, 2, Z_IUUpdate_taskPackage,
+ (Odr_fun)z_IUUpdateTaskPackage, 0},
+ {-1, -1, -1, -1, 0, 0}
+ };
+ if (!odr_initmember(o, p, sizeof(**p)))
+ return opt && odr_ok(o);
+ if (odr_choice(o, arm, &(*p)->u, &(*p)->which, 0))
+ return 1;
+ *p = 0;
+ return opt && odr_ok(o);
+}