Modified function heads & prototypes.
[yaz-moved-to-github.git] / include / prt-rsc.h
1 /*
2  * Copyright (c) 1995, Index Data.
3  *
4  * Permission to use, copy, modify, distribute, and sell this software and
5  * its documentation, in whole or in part, for any purpose, is hereby granted,
6  * provided that:
7  *
8  * 1. This copyright and permission notice appear in all copies of the
9  * software and its documentation. Notices of copyright or attribution
10  * which appear at the beginning of any file must remain unchanged.
11  *
12  * 2. The name of Index Data or the individual authors may not be used to
13  * endorse or promote products derived from this software without specific
14  * prior written permission.
15  *
16  * THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTY OF ANY KIND,
17  * EXPRESS, IMPLIED, OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
18  * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
19  * IN NO EVENT SHALL INDEX DATA BE LIABLE FOR ANY SPECIAL, INCIDENTAL,
20  * INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES
21  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR
22  * NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
23  * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
24  * OF THIS SOFTWARE.
25  *
26  * $Log: prt-rsc.h,v $
27  * Revision 1.4  1995-09-27 15:02:52  quinn
28  * Modified function heads & prototypes.
29  *
30  * Revision 1.3  1995/08/17  12:45:17  quinn
31  * Fixed minor problems with GRS-1. Added support in c&s.
32  *
33  * Revision 1.2  1995/06/02  09:49:50  quinn
34  * Add access control
35  *
36  * Revision 1.1  1995/06/01  11:24:52  quinn
37  * Resource Control
38  *
39  *
40  */
41
42 #ifndef PRT_RSC_H
43 #define PRT_RSC_H
44
45 #include <yconfig.h>
46
47 /* -------------------- Resource-1 -------------------- */
48
49 #define Z_EstimateType_currentSearchRecords           1
50 #define Z_EstimateType_finalSearchRecords             2
51 #define Z_EstimateType_currentPresentRecords          3
52 #define Z_EstimateType_finalPresentRecords            4
53 #define Z_EstimateType_currentOpTimeProcessing        5
54 #define Z_EstimateType_finalOpTimeProcessing          6
55 #define Z_EstimateType_currentAssocTime               7
56 #define Z_EstimateType_currentOperationCost           8
57 #define Z_EstimateType_finalOperationCost             9
58 #define Z_EstimateType_currentAssocCost              10
59 #define Z_EstimateType_finalOpTimeElapsed            11
60 #define Z_EstimateType_percentComplete               12
61 #define Z_EstimateType_currentSearchAssCost          13
62 #define Z_EstimateType_currentPresentAssCost         14
63 #define Z_EstimateType_currentConnectAssCost         15
64 #define Z_EstimateType_currentOtherAssCost           16
65
66 typedef struct Z_Estimate1
67 {
68     int *type;
69     int *value;
70     int *currencyCode;             /* OPTIONAL */
71 } Z_Estimate1;
72
73 typedef struct Z_ResourceReport1
74 {
75     int num_estimates;
76     Z_Estimate1 **estimates;
77     char *message;
78 } Z_ResourceReport1;
79
80 int MDF z_ResourceReport1(ODR o, Z_ResourceReport1 **p, int opt);
81
82 /* -------------------- Resource-2 -------------------- */
83
84 typedef struct Z_Estimate2
85 {
86     Z_StringOrNumeric *type;      /* same as in estimate1, if numeric */
87     Z_IntUnit *value;
88 } Z_Estimate2;
89
90 typedef struct Z_ResourceReport2
91 {
92     int num_estimates;
93     Z_Estimate2 **estimates;             /* OPTIONAL */
94     char *message;                       /* OPTIONAL */
95 } Z_ResourceReport2;
96
97 int MDF z_ResourceReport2(ODR o, Z_ResourceReport2 **p, int opt);
98
99 #endif