YAZ  5.23.1
zes-update.h
Go to the documentation of this file.
1 
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 
17 YAZ_EXPORT int z_IUUpdateEsRequest(ODR o, Z_IUUpdateEsRequest **p, int opt, const char *name);
18 
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 
26 YAZ_EXPORT int z_IUOriginPartToKeep(ODR o, Z_IUOriginPartToKeep **p, int opt, const char *name);
27 
29 YAZ_EXPORT int z_IUTargetPart(ODR o, Z_IUTargetPart **p, int opt, const char *name);
30 
32 YAZ_EXPORT int z_IUSuppliedRecordsId(ODR o, Z_IUSuppliedRecordsId **p, int opt, const char *name);
33 
35 YAZ_EXPORT int z_IUSuppliedRecords_elem(ODR o, Z_IUSuppliedRecords_elem **p, int opt, const char *name);
36 
38 YAZ_EXPORT int z_IUSuppliedRecords(ODR o, Z_IUSuppliedRecords **p, int opt, const char *name);
39 
41 YAZ_EXPORT int z_IUOriginPartNotToKeep(ODR o, Z_IUOriginPartNotToKeep **p, int opt, const char *name);
42 
44 YAZ_EXPORT int z_IUCorrelationInfo(ODR o, Z_IUCorrelationInfo **p, int opt, const char *name);
45 
48 
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
60 };
61 
65 };
66 
67 struct Z_IUUpdate {
68  int which;
69  union {
72 #define Z_IUUpdate_esRequest 1
73 #define Z_IUUpdate_taskPackage 2
74  } u;
75 };
76 
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
85  Odr_oid *schema; /* OPT */
88 };
89 
90 
91 
93 #define Z_IUTargetPart_success 1
94 #define Z_IUTargetPart_partial 2
95 #define Z_IUTargetPart_failure 3
101 };
102 
104  int which;
105  union {
106  char *timeStamp;
109 #define Z_IUSuppliedRecordsId_timeStamp 1
110 #define Z_IUSuppliedRecordsId_versionNumber 2
111 #define Z_IUSuppliedRecordsId_previousVersion 3
112  } u;
113 };
114 
116  int which;
117  union {
121 #define Z_IUSuppliedRecords_elem_number 1
122 #define Z_IUSuppliedRecords_elem_string 2
123 #define Z_IUSuppliedRecords_elem_opaque 3
124  } u; /* OPT */
128 };
129 
131  int num;
133 };
134 
137  Odr_int *id; /* OPT */
138 };
139 
141  int num;
143 };
144 
146  int which;
147  union {
150 #define Z_IUTaskPackageRecordStructure_record 1
151 #define Z_IUTaskPackageRecordStructure_surrogateDiagnostics 2
152  } u; /* 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
161 };
162 
163 #ifdef __cplusplus
164 }
165 #endif
166 #endif
Header for ODR (Open Data Representation)
int num_globalDiagnostics
Definition: zes-update.h:97
char Z_InternationalString
Definition: z-core.h:301
Z_IUOriginPartToKeep * toKeep
Definition: zes-update.h:58
ASN.1 Module Z39-50-APDU-1995.
Z_InternationalString * elementSetName
Definition: zes-update.h:86
Z_IUUpdateTaskPackage * taskPackage
Definition: zes-update.h:71
int z_IUTaskPackageRecordStructureSurrogateDiagnostics(ODR o, Z_IUTaskPackageRecordStructureSurrogateDiagnostics **p, int opt, const char *name)
Definition: zes-update.c:163
Z_InternationalString * note
Definition: zes-update.h:136
Z_IUOriginPartToKeep * originPart
Definition: zes-update.h:63
char * name
Definition: initopt.c:18
int z_IUUpdate(ODR o, Z_IUUpdate **p, int opt, const char *name)
Definition: zes-update.c:36
int z_IUUpdateEsRequest(ODR o, Z_IUUpdateEsRequest **p, int opt, const char *name)
Definition: zes-update.c:12
short Odr_oid
Definition: oid_util.h:42
nmem_int_t Odr_int
Definition: odr.h:47
Z_IUSuppliedRecords Z_IUOriginPartNotToKeep
Definition: zes-update.h:40
Z_InternationalString * versionNumber
Definition: zes-update.h:107
Z_IUOriginPartNotToKeep * notToKeep
Definition: zes-update.h:59
Z_IUTaskPackageRecordStructureSurrogateDiagnostics * surrogateDiagnostics
Definition: zes-update.h:149
Z_IUSuppliedRecords_elem ** elements
Definition: zes-update.h:132
Z_IUSuppliedRecordsId * supplementalId
Definition: zes-update.h:125
Z_External * previousVersion
Definition: zes-update.h:108
Z_IUUpdateEsRequest * esRequest
Definition: zes-update.h:70
int z_IUTaskPackageRecordStructure(ODR o, Z_IUTaskPackageRecordStructure **p, int opt, const char *name)
Definition: zes-update.c:175
int z_IUSuppliedRecords_elem(ODR o, Z_IUSuppliedRecords_elem **p, int opt, const char *name)
Definition: zes-update.c:113
Z_IUCorrelationInfo * correlationInfo
Definition: zes-update.h:153
Definition: odr.h:99
int z_IUSuppliedRecords(ODR o, Z_IUSuppliedRecords **p, int opt, const char *name)
Definition: zes-update.c:139
Odr_int * updateStatus
Definition: zes-update.h:96
Z_DiagRec ** globalDiagnostics
Definition: zes-update.h:98
Z_InternationalString * databaseName
Definition: zes-update.h:84
Definition: odr.h:124
int z_IUUpdateTaskPackage(ODR o, Z_IUUpdateTaskPackage **p, int opt, const char *name)
Definition: zes-update.c:24
Z_DiagRec ** supplementalDiagnostics
Definition: zes-update.h:160
int z_IUCorrelationInfo(ODR o, Z_IUCorrelationInfo **p, int opt, const char *name)
Definition: zes-update.c:151
int opt
Definition: initopt.c:19
int z_IUTargetPart(ODR o, Z_IUTargetPart **p, int opt, const char *name)
Definition: zes-update.c:77
int z_IUSuppliedRecordsId(ODR o, Z_IUSuppliedRecordsId **p, int opt, const char *name)
Definition: zes-update.c:93
int z_IUOriginPartToKeep(ODR o, Z_IUOriginPartToKeep **p, int opt, const char *name)
Definition: zes-update.c:54
Z_InternationalString * string
Definition: zes-update.h:119
Z_IUCorrelationInfo * correlationInfo
Definition: zes-update.h:126
structure for all known EXTERNALs
Definition: prt-ext.h:58
int num_taskPackageRecords
Definition: zes-update.h:99
Z_External * actionQualifier
Definition: zes-update.h:87
int z_IUOriginPartNotToKeep(ODR o, Z_IUOriginPartNotToKeep **p, int opt, const char *name)
Definition: zes-update.c:72
Z_IUTargetPart * targetPart
Definition: zes-update.h:64
Z_IUTaskPackageRecordStructure ** taskPackageRecords
Definition: zes-update.h:100