Initial commit
[yaz4j-moved-to-github.git] / dependencies / yaz_3.0.14 / include / yaz / zes-update0.h
1 /** \file zes-update0.h
2     \brief ASN.1 Module ESFormat-Update0
3
4     Generated automatically by YAZ ASN.1 Compiler 0.4
5 */
6
7 #ifndef zes_update0_H
8 #define zes_update0_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_IU0UpdateEsRequest Z_IU0UpdateEsRequest;
17 YAZ_EXPORT int z_IU0UpdateEsRequest (ODR o, Z_IU0UpdateEsRequest **p, int opt, const char *name);
18
19 typedef struct Z_IU0UpdateTaskPackage Z_IU0UpdateTaskPackage;
20 YAZ_EXPORT int z_IU0UpdateTaskPackage (ODR o, Z_IU0UpdateTaskPackage **p, int opt, const char *name);
21
22 typedef struct Z_IU0Update Z_IU0Update;
23 YAZ_EXPORT int z_IU0Update (ODR o, Z_IU0Update **p, int opt, const char *name);
24
25 typedef struct Z_IU0OriginPartToKeep Z_IU0OriginPartToKeep;
26 YAZ_EXPORT int z_IU0OriginPartToKeep (ODR o, Z_IU0OriginPartToKeep **p, int opt, const char *name);
27
28 typedef struct Z_IU0TargetPart Z_IU0TargetPart;
29 YAZ_EXPORT int z_IU0TargetPart (ODR o, Z_IU0TargetPart **p, int opt, const char *name);
30
31 typedef struct Z_IU0SuppliedRecordsId Z_IU0SuppliedRecordsId;
32 YAZ_EXPORT int z_IU0SuppliedRecordsId (ODR o, Z_IU0SuppliedRecordsId **p, int opt, const char *name);
33
34 typedef struct Z_IU0SuppliedRecords_elem Z_IU0SuppliedRecords_elem;
35 YAZ_EXPORT int z_IU0SuppliedRecords_elem (ODR o, Z_IU0SuppliedRecords_elem **p, int opt, const char *name);
36
37 typedef struct Z_IU0SuppliedRecords Z_IU0SuppliedRecords;
38 YAZ_EXPORT int z_IU0SuppliedRecords (ODR o, Z_IU0SuppliedRecords **p, int opt, const char *name);
39
40 typedef Z_IU0SuppliedRecords  Z_IU0OriginPartNotToKeep;
41 YAZ_EXPORT int z_IU0OriginPartNotToKeep (ODR o, Z_IU0OriginPartNotToKeep **p, int opt, const char *name);
42
43 typedef struct Z_IU0CorrelationInfo Z_IU0CorrelationInfo;
44 YAZ_EXPORT int z_IU0CorrelationInfo (ODR o, Z_IU0CorrelationInfo **p, int opt, const char *name);
45
46 typedef struct Z_IU0TaskPackageRecordStructure Z_IU0TaskPackageRecordStructure;
47 YAZ_EXPORT int z_IU0TaskPackageRecordStructure (ODR o, Z_IU0TaskPackageRecordStructure **p, int opt, const char *name);
48 #ifdef __cplusplus
49 }
50 #endif
51 #ifdef __cplusplus
52 extern "C" {
53 #endif
54 struct Z_IU0UpdateEsRequest {
55         Z_IU0OriginPartToKeep *toKeep;
56         Z_IU0OriginPartNotToKeep *notToKeep;
57 };
58
59 struct Z_IU0UpdateTaskPackage {
60         Z_IU0OriginPartToKeep *originPart;
61         Z_IU0TargetPart *targetPart;
62 };
63
64 struct Z_IU0Update {
65         int which;
66         union {
67                 Z_IU0UpdateEsRequest *esRequest;
68                 Z_IU0UpdateTaskPackage *taskPackage;
69 #define Z_IU0Update_esRequest 1
70 #define Z_IU0Update_taskPackage 2
71         } u;
72 };
73
74 struct Z_IU0OriginPartToKeep {
75 #define Z_IU0OriginPartToKeep_recordInsert 1
76 #define Z_IU0OriginPartToKeep_recordReplace 2
77 #define Z_IU0OriginPartToKeep_recordDelete 3
78 #define Z_IU0OriginPartToKeep_elementUpdate 4
79         int *action;
80         Z_InternationalString *databaseName;
81         Odr_oid *schema; /* OPT */
82         Z_InternationalString *elementSetName; /* OPT */
83 };
84
85
86
87 struct Z_IU0TargetPart {
88 #define Z_IU0TargetPart_success 1
89 #define Z_IU0TargetPart_partial 2
90 #define Z_IU0TargetPart_failure 3
91         int *updateStatus;
92         int num_globalDiagnostics;
93         Z_DiagRec **globalDiagnostics; /* OPT */
94         int num_taskPackageRecords;
95         Z_IU0TaskPackageRecordStructure **taskPackageRecords; /* OPT */
96 };
97
98 struct Z_IU0SuppliedRecordsId {
99         int which;
100         union {
101                 char *timeStamp;
102                 Z_InternationalString *versionNumber;
103                 Z_External *previousVersion;
104 #define Z_IU0SuppliedRecordsId_timeStamp 1
105 #define Z_IU0SuppliedRecordsId_versionNumber 2
106 #define Z_IU0SuppliedRecordsId_previousVersion 3
107         } u;
108 };
109
110 struct Z_IU0SuppliedRecords_elem {
111         int which;
112         union {
113                 int *number;
114                 Z_InternationalString *string;
115                 Odr_oct *opaque;
116 #define Z_IU0SuppliedRecords_elem_number 1
117 #define Z_IU0SuppliedRecords_elem_string 2
118 #define Z_IU0SuppliedRecords_elem_opaque 3
119         } u; /* OPT */
120         Z_IU0SuppliedRecordsId *supplementalId; /* OPT */
121         Z_IU0CorrelationInfo *correlationInfo; /* OPT */
122         Z_External *record;
123 };
124
125 struct Z_IU0SuppliedRecords {
126         int num;
127         Z_IU0SuppliedRecords_elem **elements;
128 };
129
130 struct Z_IU0CorrelationInfo {
131         Z_InternationalString *note; /* OPT */
132         int *id; /* OPT */
133 };
134
135 struct Z_IU0TaskPackageRecordStructure {
136         int which;
137         union {
138                 Z_External *record;
139                 Z_DiagRec *diagnostic;
140 #define Z_IU0TaskPackageRecordStructure_record 1
141 #define Z_IU0TaskPackageRecordStructure_diagnostic 2
142         } u; /* OPT */
143         Z_IU0CorrelationInfo *correlationInfo; /* OPT */
144 #define Z_IU0TaskPackageRecordStructure_success 1
145 #define Z_IU0TaskPackageRecordStructure_queued 2
146 #define Z_IU0TaskPackageRecordStructure_inProcess 3
147 #define Z_IU0TaskPackageRecordStructure_failure 4
148         int *recordStatus;
149 };
150
151 #ifdef __cplusplus
152 }
153 #endif
154 #endif