X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fyaz%2Fz-rrf1.h;fp=include%2Fyaz%2Fz-rrf1.h;h=f258a1a50718dd6906acdd1a1962e2a6e24a1879;hb=51ce48f9d3319a9f8952c4c6deb2c39692403376;hp=0000000000000000000000000000000000000000;hpb=ee5338c518eced23556105b4b2ad3cd850fd79ea;p=yaz-moved-to-github.git diff --git a/include/yaz/z-rrf1.h b/include/yaz/z-rrf1.h new file mode 100644 index 0000000..f258a1a --- /dev/null +++ b/include/yaz/z-rrf1.h @@ -0,0 +1,59 @@ +/* YC 0.2: Tue Feb 29 16:45:07 CET 2000 */ +/* Module-H ResourceReport-Format-Resource-1 */ + +#ifndef z_rrf1_H +#define z_rrf1_H + +#include +#include +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct Z_ResourceReport1 Z_ResourceReport1; +YAZ_EXPORT int z_ResourceReport1 (ODR o, Z_ResourceReport1 **p, int opt, const char *name); + +typedef struct Z_Estimate1 Z_Estimate1; +YAZ_EXPORT int z_Estimate1 (ODR o, Z_Estimate1 **p, int opt, const char *name); + +typedef int Z_EstimateType; +YAZ_EXPORT int z_EstimateType (ODR o, Z_EstimateType **p, int opt, const char *name); +#ifdef __cplusplus +} +#endif +#ifdef __cplusplus +extern "C" { +#endif +struct Z_ResourceReport1 { + int num_estimates; + Z_Estimate1 **estimates; + Z_InternationalString *message; +}; + +struct Z_Estimate1 { + Z_EstimateType *type; + int *value; + int *currency_code; /* OPT */ +}; + +#define Z_EstimateType_currentSearchRecords 1 +#define Z_EstimateType_finalSearchRecords 2 +#define Z_EstimateType_currentPresentRecords 3 +#define Z_EstimateType_finalPresentRecords 4 +#define Z_EstimateType_currentOpTimeProcessing 5 +#define Z_EstimateType_finalOpTimeProcessing 6 +#define Z_EstimateType_currentAssocTime 7 +#define Z_EstimateType_currentOperationCost 8 +#define Z_EstimateType_finalOperationCost 9 +#define Z_EstimateType_currentAssocCost 10 +#define Z_EstimateType_finalOpTimeElapsed 11 +#define Z_EstimateType_percentComplete 12 +#define Z_EstimateType_currentSearchAssocCost 13 +#define Z_EstimateType_currentPresentAssocCost 14 +#define Z_EstimateType_currentConnectAssocCost 15 +#define Z_EstimateType_currentOtherAssocCost 16 + +#ifdef __cplusplus +} +#endif +#endif