YAZ  4.2.57
zes-psched.h
Go to the documentation of this file.
1 
7 #ifndef zes_psched_H
8 #define zes_psched_H
9 
10 #include <yaz/odr.h>
11 #include <yaz/z-core.h>
12 #include <yaz/zes-exps.h>
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
19 
22 
24 YAZ_EXPORT int z_PQSPeriodicQuerySchedule(ODR o, Z_PQSPeriodicQuerySchedule **p, int opt, const char *name);
25 
27 YAZ_EXPORT int z_PQSOriginPartToKeep(ODR o, Z_PQSOriginPartToKeep **p, int opt, const char *name);
28 
30 YAZ_EXPORT int z_PQSOriginPartNotToKeep(ODR o, Z_PQSOriginPartNotToKeep **p, int opt, const char *name);
31 
33 YAZ_EXPORT int z_PQSTargetPart(ODR o, Z_PQSTargetPart **p, int opt, const char *name);
34 
35 typedef struct Z_PQSPeriod Z_PQSPeriod;
36 YAZ_EXPORT int z_PQSPeriod(ODR o, Z_PQSPeriod **p, int opt, const char *name);
37 #ifdef __cplusplus
38 }
39 #endif
40 #ifdef __cplusplus
41 extern "C" {
42 #endif
46 };
47 
51 };
52 
54  int which;
55  union {
58 #define Z_PQSPeriodicQuerySchedule_esRequest 1
59 #define Z_PQSPeriodicQuerySchedule_taskPackage 2
60  } u;
61 };
62 
67 #define Z_PQSOriginPartToKeep_replace 1
68 #define Z_PQSOriginPartToKeep_append 2
69 #define Z_PQSOriginPartToKeep_createNew 3
72  int which;
73  union {
76 #define Z_PQSOriginPartToKeep_packageName 1
77 #define Z_PQSOriginPartToKeep_exportPackage 2
78  } u; /* OPT */
79 };
80 
82  int which;
83  union {
86 #define Z_PQSOriginPartNotToKeep_actualQuery 1
87 #define Z_PQSOriginPartNotToKeep_packageName 2
88  } u; /* OPT */
90  char *expiration; /* OPT */
92 };
93 
97  char *expiration; /* OPT */
102 };
103 
104 struct Z_PQSPeriod {
105  int which;
106  union {
111 #define Z_PQSPeriod_unit 1
112 #define Z_PQSPeriod_businessDaily 2
113 #define Z_PQSPeriod_continuous 3
114 #define Z_PQSPeriod_other 4
115  } u;
116 };
117 
118 #ifdef __cplusplus
119 }
120 #endif
121 #endif