Renamed ASN.1 compiler to yaz-comp (used to be yc.tcl).
[yaz-moved-to-github.git] / include / yaz / zes-update0.h
1 /* Generated automatically by the YAZ ASN.1 Compiler 0.3 */
2 /* Module-H ESFormat-Update0 */
3
4 #ifndef zes_update0_H
5 #define zes_update0_H
6
7 #include <yaz/odr.h>
8 #include <yaz/z-core.h>
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12
13 typedef struct Z_IU0UpdateEsRequest Z_IU0UpdateEsRequest;
14 YAZ_EXPORT int z_IU0UpdateEsRequest (ODR o, Z_IU0UpdateEsRequest **p, int opt, const char *name);
15
16 typedef struct Z_IU0UpdateTaskPackage Z_IU0UpdateTaskPackage;
17 YAZ_EXPORT int z_IU0UpdateTaskPackage (ODR o, Z_IU0UpdateTaskPackage **p, int opt, const char *name);
18
19 typedef struct Z_IU0Update Z_IU0Update;
20 YAZ_EXPORT int z_IU0Update (ODR o, Z_IU0Update **p, int opt, const char *name);
21
22 typedef struct Z_IU0OriginPartToKeep Z_IU0OriginPartToKeep;
23 YAZ_EXPORT int z_IU0OriginPartToKeep (ODR o, Z_IU0OriginPartToKeep **p, int opt, const char *name);
24
25 typedef struct Z_IU0TargetPart Z_IU0TargetPart;
26 YAZ_EXPORT int z_IU0TargetPart (ODR o, Z_IU0TargetPart **p, int opt, const char *name);
27
28 typedef struct Z_IU0SuppliedRecordsId Z_IU0SuppliedRecordsId;
29 YAZ_EXPORT int z_IU0SuppliedRecordsId (ODR o, Z_IU0SuppliedRecordsId **p, int opt, const char *name);
30
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);
33
34 typedef struct Z_IU0SuppliedRecords Z_IU0SuppliedRecords;
35 YAZ_EXPORT int z_IU0SuppliedRecords (ODR o, Z_IU0SuppliedRecords **p, int opt, const char *name);
36
37 typedef Z_IU0SuppliedRecords  Z_IU0OriginPartNotToKeep;
38 YAZ_EXPORT int z_IU0OriginPartNotToKeep (ODR o, Z_IU0OriginPartNotToKeep **p, int opt, const char *name);
39
40 typedef struct Z_IU0CorrelationInfo Z_IU0CorrelationInfo;
41 YAZ_EXPORT int z_IU0CorrelationInfo (ODR o, Z_IU0CorrelationInfo **p, int opt, const char *name);
42
43 typedef struct Z_IU0TaskPackageRecordStructure Z_IU0TaskPackageRecordStructure;
44 YAZ_EXPORT int z_IU0TaskPackageRecordStructure (ODR o, Z_IU0TaskPackageRecordStructure **p, int opt, const char *name);
45 #ifdef __cplusplus
46 }
47 #endif
48 #ifdef __cplusplus
49 extern "C" {
50 #endif
51 struct Z_IU0UpdateEsRequest {
52         Z_IU0OriginPartToKeep *toKeep;
53         Z_IU0OriginPartNotToKeep *notToKeep;
54 };
55
56 struct Z_IU0UpdateTaskPackage {
57         Z_IU0OriginPartToKeep *originPart;
58         Z_IU0TargetPart *targetPart;
59 };
60
61 struct Z_IU0Update {
62         int which;
63         union {
64                 Z_IU0UpdateEsRequest *esRequest;
65                 Z_IU0UpdateTaskPackage *taskPackage;
66 #define Z_IU0Update_esRequest 1
67 #define Z_IU0Update_taskPackage 2
68         } u;
69 };
70
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
76         int *action;
77         Z_InternationalString *databaseName;
78         Odr_oid *schema; /* OPT */
79         Z_InternationalString *elementSetName; /* OPT */
80 };
81
82
83
84 struct Z_IU0TargetPart {
85 #define Z_IU0TargetPart_success 1
86 #define Z_IU0TargetPart_partial 2
87 #define Z_IU0TargetPart_failure 3
88         int *updateStatus;
89         int num_globalDiagnostics;
90         Z_DiagRec **globalDiagnostics; /* OPT */
91         int num_taskPackageRecords;
92         Z_IU0TaskPackageRecordStructure **taskPackageRecords;
93 };
94
95 struct Z_IU0SuppliedRecordsId {
96         int which;
97         union {
98                 char *timeStamp;
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
104         } u;
105 };
106
107 struct Z_IU0SuppliedRecords_elem {
108         int which;
109         union {
110                 int *number;
111                 Z_InternationalString *string;
112                 Odr_oct *opaque;
113 #define Z_IU0SuppliedRecords_elem_number 1
114 #define Z_IU0SuppliedRecords_elem_string 2
115 #define Z_IU0SuppliedRecords_elem_opaque 3
116         } u; /* OPT */
117         Z_IU0SuppliedRecordsId *supplementalId; /* OPT */
118         Z_IU0CorrelationInfo *correlationInfo; /* OPT */
119         Z_External *record;
120 };
121
122 struct Z_IU0SuppliedRecords {
123         int num;
124         Z_IU0SuppliedRecords_elem **elements;
125 };
126
127 struct Z_IU0CorrelationInfo {
128         Z_InternationalString *note; /* OPT */
129         int *id; /* OPT */
130 };
131
132 struct Z_IU0TaskPackageRecordStructure {
133         int which;
134         union {
135                 Z_External *record;
136                 Z_DiagRec *diagnostic;
137 #define Z_IU0TaskPackageRecordStructure_record 1
138 #define Z_IU0TaskPackageRecordStructure_diagnostic 2
139         } u; /* OPT */
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
145         int *recordStatus;
146 };
147
148 #ifdef __cplusplus
149 }
150 #endif
151 #endif