aabb1f75522c795e191d403e55d36bc79f1e324c
[yaz-moved-to-github.git] / include / yaz / z-rrf1.h
1 /* YC 0.2: Wed Mar 01 10:28:12 CET 2000 */
2 /* Module-H ResourceReport-Format-Resource-1 */
3
4 #ifndef z_rrf1_H
5 #define z_rrf1_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_ResourceReport1 Z_ResourceReport1;
14 YAZ_EXPORT int z_ResourceReport1 (ODR o, Z_ResourceReport1 **p, int opt, const char *name);
15
16 typedef struct Z_Estimate1 Z_Estimate1;
17 YAZ_EXPORT int z_Estimate1 (ODR o, Z_Estimate1 **p, int opt, const char *name);
18
19 typedef int  Z_EstimateType;
20 YAZ_EXPORT int z_EstimateType (ODR o, Z_EstimateType **p, int opt, const char *name);
21 #ifdef __cplusplus
22 }
23 #endif
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 struct Z_ResourceReport1 {
28         int num_estimates;
29         Z_Estimate1 **estimates;
30         Z_InternationalString *message;
31 };
32
33 struct Z_Estimate1 {
34         Z_EstimateType *type;
35         int *value;
36         int *currency_code; /* OPT */
37 };
38
39 #define Z_EstimateType_currentSearchRecords 1
40 #define Z_EstimateType_finalSearchRecords 2
41 #define Z_EstimateType_currentPresentRecords 3
42 #define Z_EstimateType_finalPresentRecords 4
43 #define Z_EstimateType_currentOpTimeProcessing 5
44 #define Z_EstimateType_finalOpTimeProcessing 6
45 #define Z_EstimateType_currentAssocTime 7
46 #define Z_EstimateType_currentOperationCost 8
47 #define Z_EstimateType_finalOperationCost 9
48 #define Z_EstimateType_currentAssocCost 10
49 #define Z_EstimateType_finalOpTimeElapsed 11
50 #define Z_EstimateType_percentComplete 12
51 #define Z_EstimateType_currentSearchAssocCost 13
52 #define Z_EstimateType_currentPresentAssocCost 14
53 #define Z_EstimateType_currentConnectAssocCost 15
54 #define Z_EstimateType_currentOtherAssocCost 16
55
56 #ifdef __cplusplus
57 }
58 #endif
59 #endif