00001 00007 #ifndef z_rrf1_H 00008 #define z_rrf1_H 00009 00010 #include <yaz/odr.h> 00011 #include <yaz/z-core.h> 00012 #ifdef __cplusplus 00013 extern "C" { 00014 #endif 00015 00016 typedef struct Z_ResourceReport1 Z_ResourceReport1; 00017 YAZ_EXPORT int z_ResourceReport1 (ODR o, Z_ResourceReport1 **p, int opt, const char *name); 00018 00019 typedef struct Z_Estimate1 Z_Estimate1; 00020 YAZ_EXPORT int z_Estimate1 (ODR o, Z_Estimate1 **p, int opt, const char *name); 00021 00022 typedef int Z_EstimateType; 00023 YAZ_EXPORT int z_EstimateType (ODR o, Z_EstimateType **p, int opt, const char *name); 00024 #ifdef __cplusplus 00025 } 00026 #endif 00027 #ifdef __cplusplus 00028 extern "C" { 00029 #endif 00030 struct Z_ResourceReport1 { 00031 int num_estimates; 00032 Z_Estimate1 **estimates; 00033 Z_InternationalString *message; 00034 }; 00035 00036 struct Z_Estimate1 { 00037 Z_EstimateType *type; 00038 int *value; 00039 int *currency_code; /* OPT */ 00040 }; 00041 00042 #define Z_EstimateType_currentSearchRecords 1 00043 #define Z_EstimateType_finalSearchRecords 2 00044 #define Z_EstimateType_currentPresentRecords 3 00045 #define Z_EstimateType_finalPresentRecords 4 00046 #define Z_EstimateType_currentOpTimeProcessing 5 00047 #define Z_EstimateType_finalOpTimeProcessing 6 00048 #define Z_EstimateType_currentAssocTime 7 00049 #define Z_EstimateType_currentOperationCost 8 00050 #define Z_EstimateType_finalOperationCost 9 00051 #define Z_EstimateType_currentAssocCost 10 00052 #define Z_EstimateType_finalOpTimeElapsed 11 00053 #define Z_EstimateType_percentComplete 12 00054 #define Z_EstimateType_currentSearchAssocCost 13 00055 #define Z_EstimateType_currentPresentAssocCost 14 00056 #define Z_EstimateType_currentConnectAssocCost 15 00057 #define Z_EstimateType_currentOtherAssocCost 16 00058 00059 #ifdef __cplusplus 00060 } 00061 #endif 00062 #endif
1.5.6