YAZ  5.23.1
zes-update0.h
Go to the documentation of this file.
1 
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 
17 YAZ_EXPORT int z_IU0UpdateEsRequest(ODR o, Z_IU0UpdateEsRequest **p, int opt, const char *name);
18 
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 
26 YAZ_EXPORT int z_IU0OriginPartToKeep(ODR o, Z_IU0OriginPartToKeep **p, int opt, const char *name);
27 
29 YAZ_EXPORT int z_IU0TargetPart(ODR o, Z_IU0TargetPart **p, int opt, const char *name);
30 
32 YAZ_EXPORT int z_IU0SuppliedRecordsId(ODR o, Z_IU0SuppliedRecordsId **p, int opt, const char *name);
33 
35 YAZ_EXPORT int z_IU0SuppliedRecords_elem(ODR o, Z_IU0SuppliedRecords_elem **p, int opt, const char *name);
36 
38 YAZ_EXPORT int z_IU0SuppliedRecords(ODR o, Z_IU0SuppliedRecords **p, int opt, const char *name);
39 
41 YAZ_EXPORT int z_IU0OriginPartNotToKeep(ODR o, Z_IU0OriginPartNotToKeep **p, int opt, const char *name);
42 
44 YAZ_EXPORT int z_IU0CorrelationInfo(ODR o, Z_IU0CorrelationInfo **p, int opt, const char *name);
45 
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
57 };
58 
62 };
63 
64 struct Z_IU0Update {
65  int which;
66  union {
69 #define Z_IU0Update_esRequest 1
70 #define Z_IU0Update_taskPackage 2
71  } u;
72 };
73 
75 #define Z_IU0OriginPartToKeep_recordInsert 1
76 #define Z_IU0OriginPartToKeep_recordReplace 2
77 #define Z_IU0OriginPartToKeep_recordDelete 3
78 #define Z_IU0OriginPartToKeep_elementUpdate 4
81  Odr_oid *schema; /* OPT */
83 };
84 
85 
86 
88 #define Z_IU0TargetPart_success 1
89 #define Z_IU0TargetPart_partial 2
90 #define Z_IU0TargetPart_failure 3
96 };
97 
99  int which;
100  union {
101  char *timeStamp;
104 #define Z_IU0SuppliedRecordsId_timeStamp 1
105 #define Z_IU0SuppliedRecordsId_versionNumber 2
106 #define Z_IU0SuppliedRecordsId_previousVersion 3
107  } u;
108 };
109 
111  int which;
112  union {
116 #define Z_IU0SuppliedRecords_elem_number 1
117 #define Z_IU0SuppliedRecords_elem_string 2
118 #define Z_IU0SuppliedRecords_elem_opaque 3
119  } u; /* OPT */
123 };
124 
126  int num;
128 };
129 
132  Odr_int *id; /* OPT */
133 };
134 
136  int which;
137  union {
140 #define Z_IU0TaskPackageRecordStructure_record 1
141 #define Z_IU0TaskPackageRecordStructure_diagnostic 2
142  } u; /* 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
149 };
150 
151 #ifdef __cplusplus
152 }
153 #endif
154 #endif
int z_IU0SuppliedRecordsId(ODR o, Z_IU0SuppliedRecordsId **p, int opt, const char *name)
Definition: zes-update0.c:91
Header for ODR (Open Data Representation)
char Z_InternationalString
Definition: z-core.h:301
ASN.1 Module Z39-50-APDU-1995.
Z_IU0OriginPartToKeep * toKeep
Definition: zes-update0.h:55
Z_IU0TargetPart * targetPart
Definition: zes-update0.h:61
char * name
Definition: initopt.c:18
int z_IU0TargetPart(ODR o, Z_IU0TargetPart **p, int opt, const char *name)
Definition: zes-update0.c:75
short Odr_oid
Definition: oid_util.h:42
nmem_int_t Odr_int
Definition: odr.h:47
int num_taskPackageRecords
Definition: zes-update0.h:94
int z_IU0SuppliedRecords_elem(ODR o, Z_IU0SuppliedRecords_elem **p, int opt, const char *name)
Definition: zes-update0.c:111
Z_DiagRec ** globalDiagnostics
Definition: zes-update0.h:93
Z_IU0UpdateTaskPackage * taskPackage
Definition: zes-update0.h:68
Z_External * previousVersion
Definition: zes-update0.h:103
Odr_int * updateStatus
Definition: zes-update0.h:91
Z_IU0OriginPartNotToKeep * notToKeep
Definition: zes-update0.h:56
Z_InternationalString * elementSetName
Definition: zes-update0.h:82
int z_IU0CorrelationInfo(ODR o, Z_IU0CorrelationInfo **p, int opt, const char *name)
Definition: zes-update0.c:149
Z_InternationalString * databaseName
Definition: zes-update0.h:80
Z_IU0SuppliedRecordsId * supplementalId
Definition: zes-update0.h:120
Z_InternationalString * string
Definition: zes-update0.h:114
Z_IU0CorrelationInfo * correlationInfo
Definition: zes-update0.h:121
Z_IU0OriginPartToKeep * originPart
Definition: zes-update0.h:60
int num_globalDiagnostics
Definition: zes-update0.h:92
int z_IU0TaskPackageRecordStructure(ODR o, Z_IU0TaskPackageRecordStructure **p, int opt, const char *name)
Definition: zes-update0.c:161
Z_IU0SuppliedRecords Z_IU0OriginPartNotToKeep
Definition: zes-update0.h:40
Definition: odr.h:99
int z_IU0SuppliedRecords(ODR o, Z_IU0SuppliedRecords **p, int opt, const char *name)
Definition: zes-update0.c:137
Z_IU0UpdateEsRequest * esRequest
Definition: zes-update0.h:67
Definition: odr.h:124
Z_InternationalString * versionNumber
Definition: zes-update0.h:102
int z_IU0UpdateTaskPackage(ODR o, Z_IU0UpdateTaskPackage **p, int opt, const char *name)
Definition: zes-update0.c:24
Z_IU0CorrelationInfo * correlationInfo
Definition: zes-update0.h:143
int z_IU0UpdateEsRequest(ODR o, Z_IU0UpdateEsRequest **p, int opt, const char *name)
Definition: zes-update0.c:12
int opt
Definition: initopt.c:19
int z_IU0OriginPartToKeep(ODR o, Z_IU0OriginPartToKeep **p, int opt, const char *name)
Definition: zes-update0.c:54
int z_IU0OriginPartNotToKeep(ODR o, Z_IU0OriginPartNotToKeep **p, int opt, const char *name)
Definition: zes-update0.c:70
structure for all known EXTERNALs
Definition: prt-ext.h:58
Z_IU0TaskPackageRecordStructure ** taskPackageRecords
Definition: zes-update0.h:95
Z_IU0SuppliedRecords_elem ** elements
Definition: zes-update0.h:127
Z_InternationalString * note
Definition: zes-update0.h:131
int z_IU0Update(ODR o, Z_IU0Update **p, int opt, const char *name)
Definition: zes-update0.c:36