1 /* Generated automatically by the YAZ ASN.1 Compiler 0.3 */
2 /* Module-H ESFormat-Update0 */
8 #include <yaz/z-core.h>
13 typedef struct Z_IU0UpdateEsRequest Z_IU0UpdateEsRequest;
14 YAZ_EXPORT int z_IU0UpdateEsRequest (ODR o, Z_IU0UpdateEsRequest **p, int opt, const char *name);
16 typedef struct Z_IU0UpdateTaskPackage Z_IU0UpdateTaskPackage;
17 YAZ_EXPORT int z_IU0UpdateTaskPackage (ODR o, Z_IU0UpdateTaskPackage **p, int opt, const char *name);
19 typedef struct Z_IU0Update Z_IU0Update;
20 YAZ_EXPORT int z_IU0Update (ODR o, Z_IU0Update **p, int opt, const char *name);
22 typedef struct Z_IU0OriginPartToKeep Z_IU0OriginPartToKeep;
23 YAZ_EXPORT int z_IU0OriginPartToKeep (ODR o, Z_IU0OriginPartToKeep **p, int opt, const char *name);
25 typedef struct Z_IU0TargetPart Z_IU0TargetPart;
26 YAZ_EXPORT int z_IU0TargetPart (ODR o, Z_IU0TargetPart **p, int opt, const char *name);
28 typedef struct Z_IU0SuppliedRecordsId Z_IU0SuppliedRecordsId;
29 YAZ_EXPORT int z_IU0SuppliedRecordsId (ODR o, Z_IU0SuppliedRecordsId **p, int opt, const char *name);
31 typedef struct Z_IU0SuppliedRecords_elem Z_IU0SuppliedRecords_elem;
32 YAZ_EXPORT int z_IU0SuppliedRecords_elem (ODR o, Z_IU0SuppliedRecords_elem **p, int opt, const char *name);
34 typedef struct Z_IU0SuppliedRecords Z_IU0SuppliedRecords;
35 YAZ_EXPORT int z_IU0SuppliedRecords (ODR o, Z_IU0SuppliedRecords **p, int opt, const char *name);
37 typedef Z_IU0SuppliedRecords Z_IU0OriginPartNotToKeep;
38 YAZ_EXPORT int z_IU0OriginPartNotToKeep (ODR o, Z_IU0OriginPartNotToKeep **p, int opt, const char *name);
40 typedef struct Z_IU0CorrelationInfo Z_IU0CorrelationInfo;
41 YAZ_EXPORT int z_IU0CorrelationInfo (ODR o, Z_IU0CorrelationInfo **p, int opt, const char *name);
43 typedef struct Z_IU0TaskPackageRecordStructure Z_IU0TaskPackageRecordStructure;
44 YAZ_EXPORT int z_IU0TaskPackageRecordStructure (ODR o, Z_IU0TaskPackageRecordStructure **p, int opt, const char *name);
51 struct Z_IU0UpdateEsRequest {
52 Z_IU0OriginPartToKeep *toKeep;
53 Z_IU0OriginPartNotToKeep *notToKeep;
56 struct Z_IU0UpdateTaskPackage {
57 Z_IU0OriginPartToKeep *originPart;
58 Z_IU0TargetPart *targetPart;
64 Z_IU0UpdateEsRequest *esRequest;
65 Z_IU0UpdateTaskPackage *taskPackage;
66 #define Z_IU0Update_esRequest 1
67 #define Z_IU0Update_taskPackage 2
71 struct Z_IU0OriginPartToKeep {
72 #define Z_IU0OriginPartToKeep_recordInsert 1
73 #define Z_IU0OriginPartToKeep_recordReplace 2
74 #define Z_IU0OriginPartToKeep_recordDelete 3
75 #define Z_IU0OriginPartToKeep_elementUpdate 4
77 Z_InternationalString *databaseName;
78 Odr_oid *schema; /* OPT */
79 Z_InternationalString *elementSetName; /* OPT */
84 struct Z_IU0TargetPart {
85 #define Z_IU0TargetPart_success 1
86 #define Z_IU0TargetPart_partial 2
87 #define Z_IU0TargetPart_failure 3
89 int num_globalDiagnostics;
90 Z_DiagRec **globalDiagnostics; /* OPT */
91 int num_taskPackageRecords;
92 Z_IU0TaskPackageRecordStructure **taskPackageRecords;
95 struct Z_IU0SuppliedRecordsId {
99 Z_InternationalString *versionNumber;
100 Z_External *previousVersion;
101 #define Z_IU0SuppliedRecordsId_timeStamp 1
102 #define Z_IU0SuppliedRecordsId_versionNumber 2
103 #define Z_IU0SuppliedRecordsId_previousVersion 3
107 struct Z_IU0SuppliedRecords_elem {
111 Z_InternationalString *string;
113 #define Z_IU0SuppliedRecords_elem_number 1
114 #define Z_IU0SuppliedRecords_elem_string 2
115 #define Z_IU0SuppliedRecords_elem_opaque 3
117 Z_IU0SuppliedRecordsId *supplementalId; /* OPT */
118 Z_IU0CorrelationInfo *correlationInfo; /* OPT */
122 struct Z_IU0SuppliedRecords {
124 Z_IU0SuppliedRecords_elem **elements;
127 struct Z_IU0CorrelationInfo {
128 Z_InternationalString *note; /* OPT */
132 struct Z_IU0TaskPackageRecordStructure {
136 Z_DiagRec *diagnostic;
137 #define Z_IU0TaskPackageRecordStructure_record 1
138 #define Z_IU0TaskPackageRecordStructure_diagnostic 2
140 Z_IU0CorrelationInfo *correlationInfo; /* OPT */
141 #define Z_IU0TaskPackageRecordStructure_success 1
142 #define Z_IU0TaskPackageRecordStructure_queued 2
143 #define Z_IU0TaskPackageRecordStructure_inProcess 3
144 #define Z_IU0TaskPackageRecordStructure_failure 4