d1937ef12cadde4615019255acd873702788cecf
[yaz-moved-to-github.git] / include / yaz / z-estask.h
1 /* YC 0.2: Tue Feb 29 16:45:07 CET 2000 */
2 /* Module-H RecordSyntax-ESTaskPackage */
3
4 #ifndef z_estask_H
5 #define z_estask_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_TaskPackage Z_TaskPackage;
14 YAZ_EXPORT int z_TaskPackage (ODR o, Z_TaskPackage **p, int opt, const char *name);
15 #ifdef __cplusplus
16 }
17 #endif
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 struct Z_TaskPackage {
22         Odr_oid *packageType;
23         Z_InternationalString *packageName; /* OPT */
24         Z_InternationalString *userId; /* OPT */
25         Z_IntUnit *retentionTime; /* OPT */
26         Z_Permissions *permissions; /* OPT */
27         Z_InternationalString *description; /* OPT */
28         Odr_oct *targetReference; /* OPT */
29         char *creationDateTime; /* OPT */
30 #define Z_TaskPackage_pending 0
31 #define Z_TaskPackage_active 1
32 #define Z_TaskPackage_complete 2
33 #define Z_TaskPackage_aborted 3
34         int *taskStatus;
35         int num_packageDiagnostics;
36         Z_DiagRec **packageDiagnostics; /* OPT */
37         Z_External *taskSpecificParameters;
38 };
39
40 #ifdef __cplusplus
41 }
42 #endif
43 #endif