YAZ  5.23.1
zes-admin.h
Go to the documentation of this file.
1 
7 #ifndef zes_admin_H
8 #define zes_admin_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_AdminEsRequest(ODR o, Z_AdminEsRequest **p, int opt, const char *name);
18 
20 YAZ_EXPORT int z_AdminTaskPackage(ODR o, Z_AdminTaskPackage **p, int opt, const char *name);
21 
22 typedef struct Z_Admin Z_Admin;
23 YAZ_EXPORT int z_Admin(ODR o, Z_Admin **p, int opt, const char *name);
24 
26 YAZ_EXPORT int z_ESAdminOriginPartToKeep(ODR o, Z_ESAdminOriginPartToKeep **p, int opt, const char *name);
27 
29 YAZ_EXPORT int z_ESAdminOriginPartNotToKeep(ODR o, Z_ESAdminOriginPartNotToKeep **p, int opt, const char *name);
30 
32 YAZ_EXPORT int z_ESAdminTargetPart(ODR o, Z_ESAdminTargetPart **p, int opt, const char *name);
33 
35 YAZ_EXPORT int z_ImportParameters(ODR o, Z_ImportParameters **p, int opt, const char *name);
36 #ifdef __cplusplus
37 }
38 #endif
39 #ifdef __cplusplus
40 extern "C" {
41 #endif
45 };
46 
50 };
51 
52 struct Z_Admin {
53  int which;
54  union {
57 #define Z_Admin_esRequest 1
58 #define Z_Admin_taskPackage 2
59  } u;
60 };
61 
63  int which;
64  union {
74 #define Z_ESAdminOriginPartToKeep_reIndex 1
75 #define Z_ESAdminOriginPartToKeep_truncate 2
76 #define Z_ESAdminOriginPartToKeep_drop 3
77 #define Z_ESAdminOriginPartToKeep_create 4
78 #define Z_ESAdminOriginPartToKeep_import 5
79 #define Z_ESAdminOriginPartToKeep_refresh 6
80 #define Z_ESAdminOriginPartToKeep_commit 7
81 #define Z_ESAdminOriginPartToKeep_shutdown 8
82 #define Z_ESAdminOriginPartToKeep_start 9
83  } u;
85 };
86 
88  int which;
89  union {
92 #define Z_ESAdminOriginPartNotToKeep_records 1
93 #define Z_ESAdminOriginPartNotToKeep_recordsWillFollow 2
94  } u;
95 };
96 
98 #define Z_ESAdminTargetPart_success 1
99 #define Z_ESAdminTargetPart_partial 2
100 #define Z_ESAdminTargetPart_failure 3
104 };
105 
108 };
109 
110 #ifdef __cplusplus
111 }
112 #endif
113 #endif
Header for ODR (Open Data Representation)
char Z_InternationalString
Definition: z-core.h:301
int z_ESAdminTargetPart(ODR o, Z_ESAdminTargetPart **p, int opt, const char *name)
Definition: zes-admin.c:106
int z_ImportParameters(ODR o, Z_ImportParameters **p, int opt, const char *name)
Definition: zes-admin.c:119
ASN.1 Module Z39-50-APDU-1995.
Z_ESAdminOriginPartToKeep * originPart
Definition: zes-admin.h:48
Z_DiagRec ** globalDiagnostics
Definition: zes-admin.h:103
char * name
Definition: initopt.c:18
Z_InternationalString * recordType
Definition: zes-admin.h:107
int z_ESAdminOriginPartNotToKeep(ODR o, Z_ESAdminOriginPartNotToKeep **p, int opt, const char *name)
Definition: zes-admin.c:88
nmem_int_t Odr_int
Definition: odr.h:47
Z_InternationalString * databaseName
Definition: zes-admin.h:84
int z_AdminEsRequest(ODR o, Z_AdminEsRequest **p, int opt, const char *name)
Definition: zes-admin.c:12
int z_ESAdminOriginPartToKeep(ODR o, Z_ESAdminOriginPartToKeep **p, int opt, const char *name)
Definition: zes-admin.c:54
Z_AdminEsRequest * esRequest
Definition: zes-admin.h:55
Z_ESAdminTargetPart * targetPart
Definition: zes-admin.h:49
int z_Admin(ODR o, Z_Admin **p, int opt, const char *name)
Definition: zes-admin.c:36
Z_AdminTaskPackage * taskPackage
Definition: zes-admin.h:56
Definition: odr.h:124
Z_ESAdminOriginPartNotToKeep * notToKeep
Definition: zes-admin.h:44
int opt
Definition: initopt.c:19
Odr_int * updateStatus
Definition: zes-admin.h:101
int z_AdminTaskPackage(ODR o, Z_AdminTaskPackage **p, int opt, const char *name)
Definition: zes-admin.c:24
int which
Definition: zes-admin.h:53
Z_ESAdminOriginPartToKeep * toKeep
Definition: zes-admin.h:43
void Odr_null
Definition: odr.h:105