eccf5f1194f0c91cab93f3d320d14629635997e6
[yaz-moved-to-github.git] / include / yaz / z-univ.h
1 /* YC 0.2: Tue Feb 29 16:45:14 CET 2000 */
2 /* Module-H ResourceReport-Format-Universe-1 */
3
4 #ifndef z_univ_H
5 #define z_univ_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_UniverseReportHits Z_UniverseReportHits;
14 YAZ_EXPORT int z_UniverseReportHits (ODR o, Z_UniverseReportHits **p, int opt, const char *name);
15
16 typedef struct Z_UniverseReportDuplicate Z_UniverseReportDuplicate;
17 YAZ_EXPORT int z_UniverseReportDuplicate (ODR o, Z_UniverseReportDuplicate **p, int opt, const char *name);
18
19 typedef struct Z_UniverseReport Z_UniverseReport;
20 YAZ_EXPORT int z_UniverseReport (ODR o, Z_UniverseReport **p, int opt, const char *name);
21 #ifdef __cplusplus
22 }
23 #endif
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 struct Z_UniverseReportHits {
28         Z_StringOrNumeric *database;
29         Z_StringOrNumeric *hits;
30 };
31
32 struct Z_UniverseReportDuplicate {
33         Z_StringOrNumeric *hitno;
34 };
35
36 struct Z_UniverseReport {
37         int *totalHits;
38         int which;
39         union {
40                 Z_UniverseReportHits *databaseHits;
41                 Z_UniverseReportDuplicate *duplicate;
42 #define Z_UniverseReport_databaseHits 1
43 #define Z_UniverseReport_duplicate 2
44         } u;
45 };
46
47 #ifdef __cplusplus
48 }
49 #endif
50 #endif