Initial commit
[yaz4j-moved-to-github.git] / dependencies / yaz_3.0.14 / include / yaz / zes-update.h
1 /** \file zes-update.h
2     \brief ASN.1 Module ESFormat-Update
3
4     Generated automatically by YAZ ASN.1 Compiler 0.4
5 */
6
7 #ifndef zes_update_H
8 #define zes_update_H
9
10 #include <yaz/odr.h>
11 #include <yaz/z-core.h>
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15
16 typedef struct Z_IUUpdateEsRequest Z_IUUpdateEsRequest;
17 YAZ_EXPORT int z_IUUpdateEsRequest (ODR o, Z_IUUpdateEsRequest **p, int opt, const char *name);
18
19 typedef struct Z_IUUpdateTaskPackage Z_IUUpdateTaskPackage;
20 YAZ_EXPORT int z_IUUpdateTaskPackage (ODR o, Z_IUUpdateTaskPackage **p, int opt, const char *name);
21
22 typedef struct Z_IUUpdate Z_IUUpdate;
23 YAZ_EXPORT int z_IUUpdate (ODR o, Z_IUUpdate **p, int opt, const char *name);
24
25 typedef struct Z_IUOriginPartToKeep Z_IUOriginPartToKeep;
26 YAZ_EXPORT int z_IUOriginPartToKeep (ODR o, Z_IUOriginPartToKeep **p, int opt, const char *name);
27
28 typedef struct Z_IUTargetPart Z_IUTargetPart;
29 YAZ_EXPORT int z_IUTargetPart (ODR o, Z_IUTargetPart **p, int opt, const char *name);
30
31 typedef struct Z_IUSuppliedRecordsId Z_IUSuppliedRecordsId;
32 YAZ_EXPORT int z_IUSuppliedRecordsId (ODR o, Z_IUSuppliedRecordsId **p, int opt, const char *name);
33
34 typedef struct Z_IUSuppliedRecords_elem Z_IUSuppliedRecords_elem;
35 YAZ_EXPORT int z_IUSuppliedRecords_elem (ODR o, Z_IUSuppliedRecords_elem **p, int opt, const char *name);
36
37 typedef struct Z_IUSuppliedRecords Z_IUSuppliedRecords;
38 YAZ_EXPORT int z_IUSuppliedRecords (ODR o, Z_IUSuppliedRecords **p, int opt, const char *name);
39
40 typedef Z_IUSuppliedRecords  Z_IUOriginPartNotToKeep;
41 YAZ_EXPORT int z_IUOriginPartNotToKeep (ODR o, Z_IUOriginPartNotToKeep **p, int opt, const char *name);
42
43 typedef struct Z_IUCorrelationInfo Z_IUCorrelationInfo;
44 YAZ_EXPORT int z_IUCorrelationInfo (ODR o, Z_IUCorrelationInfo **p, int opt, const char *name);
45
46 typedef struct Z_IUTaskPackageRecordStructureSurrogateDiagnostics Z_IUTaskPackageRecordStructureSurrogateDiagnostics;
47 YAZ_EXPORT int z_IUTaskPackageRecordStructureSurrogateDiagnostics (ODR o, Z_IUTaskPackageRecordStructureSurrogateDiagnostics **p, int opt, const char *name);
48
49 typedef struct Z_IUTaskPackageRecordStructure Z_IUTaskPackageRecordStructure;
50 YAZ_EXPORT int z_IUTaskPackageRecordStructure (ODR o, Z_IUTaskPackageRecordStructure **p, int opt, const char *name);
51 #ifdef __cplusplus
52 }
53 #endif
54 #ifdef __cplusplus
55 extern "C" {
56 #endif
57 struct Z_IUUpdateEsRequest {
58         Z_IUOriginPartToKeep *toKeep;
59         Z_IUOriginPartNotToKeep *notToKeep;
60 };
61
62 struct Z_IUUpdateTaskPackage {
63         Z_IUOriginPartToKeep *originPart;
64         Z_IUTargetPart *targetPart;
65 };
66
67 struct Z_IUUpdate {
68         int which;
69         union {
70                 Z_IUUpdateEsRequest *esRequest;
71                 Z_IUUpdateTaskPackage *taskPackage;
72 #define Z_IUUpdate_esRequest 1
73 #define Z_IUUpdate_taskPackage 2
74         } u;
75 };
76
77 struct Z_IUOriginPartToKeep {
78 #define Z_IUOriginPartToKeep_recordInsert 1
79 #define Z_IUOriginPartToKeep_recordReplace 2
80 #define Z_IUOriginPartToKeep_recordDelete 3
81 #define Z_IUOriginPartToKeep_elementUpdate 4
82 #define Z_IUOriginPartToKeep_specialUpdate 5
83         int *action;
84         Z_InternationalString *databaseName;
85         Odr_oid *schema; /* OPT */
86         Z_InternationalString *elementSetName; /* OPT */
87         Z_External *actionQualifier; /* OPT */
88 };
89
90
91
92 struct Z_IUTargetPart {
93 #define Z_IUTargetPart_success 1
94 #define Z_IUTargetPart_partial 2
95 #define Z_IUTargetPart_failure 3
96         int *updateStatus;
97         int num_globalDiagnostics;
98         Z_DiagRec **globalDiagnostics; /* OPT */
99         int num_taskPackageRecords;
100         Z_IUTaskPackageRecordStructure **taskPackageRecords;
101 };
102
103 struct Z_IUSuppliedRecordsId {
104         int which;
105         union {
106                 char *timeStamp;
107                 Z_InternationalString *versionNumber;
108                 Z_External *previousVersion;
109 #define Z_IUSuppliedRecordsId_timeStamp 1
110 #define Z_IUSuppliedRecordsId_versionNumber 2
111 #define Z_IUSuppliedRecordsId_previousVersion 3
112         } u;
113 };
114
115 struct Z_IUSuppliedRecords_elem {
116         int which;
117         union {
118                 int *number;
119                 Z_InternationalString *string;
120                 Odr_oct *opaque;
121 #define Z_IUSuppliedRecords_elem_number 1
122 #define Z_IUSuppliedRecords_elem_string 2
123 #define Z_IUSuppliedRecords_elem_opaque 3
124         } u; /* OPT */
125         Z_IUSuppliedRecordsId *supplementalId; /* OPT */
126         Z_IUCorrelationInfo *correlationInfo; /* OPT */
127         Z_External *record;
128 };
129
130 struct Z_IUSuppliedRecords {
131         int num;
132         Z_IUSuppliedRecords_elem **elements;
133 };
134
135 struct Z_IUCorrelationInfo {
136         Z_InternationalString *note; /* OPT */
137         int *id; /* OPT */
138 };
139
140 struct Z_IUTaskPackageRecordStructureSurrogateDiagnostics {
141         int num;
142         Z_DiagRec **elements;
143 };
144
145 struct Z_IUTaskPackageRecordStructure {
146         int which;
147         union {
148                 Z_External *record;
149                 Z_IUTaskPackageRecordStructureSurrogateDiagnostics *surrogateDiagnostics;
150 #define Z_IUTaskPackageRecordStructure_record 1
151 #define Z_IUTaskPackageRecordStructure_surrogateDiagnostics 2
152         } u; /* OPT */
153         Z_IUCorrelationInfo *correlationInfo; /* OPT */
154 #define Z_IUTaskPackageRecordStructure_success 1
155 #define Z_IUTaskPackageRecordStructure_queued 2
156 #define Z_IUTaskPackageRecordStructure_inProcess 3
157 #define Z_IUTaskPackageRecordStructure_failure 4
158         int *recordStatus;
159         int num_supplementalDiagnostics;
160         Z_DiagRec **supplementalDiagnostics; /* OPT */
161 };
162
163 #ifdef __cplusplus
164 }
165 #endif
166 #endif