Resource Control
[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.1  1995-06-01 11:24:52  quinn
28  * Resource Control
29  *
30  *
31  */
32
33 #ifndef PRT_RSC_H
34 #define PRT_RSC_H
35
36 /* -------------------- Resource-1 -------------------- */
37
38 #define Z_EstimateType_currentSearchRecords           1
39 #define Z_EstimateType_finalSearchRecords             2
40 #define Z_EstimateType_currentPresentRecords          3
41 #define Z_EstimateType_finalPresentRecords            4
42 #define Z_EstimateType_currentOpTimeProcessing        5
43 #define Z_EstimateType_finalOpTimeProcessing          6
44 #define Z_EstimateType_currentAssocTime               7
45 #define Z_EstimateType_currentOperationCost           8
46 #define Z_EstimateType_finalOperationCost             9
47 #define Z_EstimateType_currentAssocCost              10
48 #define Z_EstimateType_finalOpTimeElapsed            11
49 #define Z_EstimateType_percentComplete               12
50 #define Z_EstimateType_currentSearchAssCost          13
51 #define Z_EstimateType_currentPresentAssCost         14
52 #define Z_EstimateType_currentConnectAssCost         15
53 #define Z_EstimateType_currentOtherAssCost           16
54
55 typedef struct Z_Estimate1
56 {
57     int *type;
58     int *value;
59     int *currencyCode;             /* OPTIONAL */
60 } Z_Estimate1;
61
62 typedef struct Z_ResourceReport1
63 {
64     int num_estimates;
65     Z_Estimate **estimates;
66     char *message;
67 } Z_ResourceReport1;
68
69 /* -------------------- Resource-2 -------------------- */
70
71 typedef struct Z_Estimate2
72 {
73     Z_StringOrNumeric *type;      /* same as in estimate1, if numeric */
74     Z_IntUnit *value;
75 } Z_Estimate2;
76
77 typedef struct Z_ResourceReport2
78 {
79     int num_estimates;
80     Z_Estimate2 **setimates;             /* OPTIONAL */
81     char *message;                       /* OPTIONAL */
82 } Z_ResourceReport2;
83
84 #endif