1 | /* Generated automatically by the YAZ ASN.1 Compiler 0.3 */
|
---|
2 | /* Module-H UserInfoFormat-searchResult-1 */
|
---|
3 |
|
---|
4 | #ifndef z_uifr1_H
|
---|
5 | #define z_uifr1_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_SearchInfoReport_s Z_SearchInfoReport_s;
|
---|
14 | YAZ_EXPORT int z_SearchInfoReport_s (ODR o, Z_SearchInfoReport_s **p, int opt, const char *name);
|
---|
15 |
|
---|
16 | typedef struct Z_SearchInfoReport Z_SearchInfoReport;
|
---|
17 | YAZ_EXPORT int z_SearchInfoReport (ODR o, Z_SearchInfoReport **p, int opt, const char *name);
|
---|
18 |
|
---|
19 | typedef struct Z_ResultsByDB_sList Z_ResultsByDB_sList;
|
---|
20 | YAZ_EXPORT int z_ResultsByDB_sList (ODR o, Z_ResultsByDB_sList **p, int opt, const char *name);
|
---|
21 |
|
---|
22 | typedef struct Z_ResultsByDB_s Z_ResultsByDB_s;
|
---|
23 | YAZ_EXPORT int z_ResultsByDB_s (ODR o, Z_ResultsByDB_s **p, int opt, const char *name);
|
---|
24 |
|
---|
25 | typedef struct Z_ResultsByDB Z_ResultsByDB;
|
---|
26 | YAZ_EXPORT int z_ResultsByDB (ODR o, Z_ResultsByDB **p, int opt, const char *name);
|
---|
27 |
|
---|
28 | typedef struct Z_QueryExpressionTerm Z_QueryExpressionTerm;
|
---|
29 | YAZ_EXPORT int z_QueryExpressionTerm (ODR o, Z_QueryExpressionTerm **p, int opt, const char *name);
|
---|
30 |
|
---|
31 | typedef struct Z_QueryExpression Z_QueryExpression;
|
---|
32 | YAZ_EXPORT int z_QueryExpression (ODR o, Z_QueryExpression **p, int opt, const char *name);
|
---|
33 | #ifdef __cplusplus
|
---|
34 | }
|
---|
35 | #endif
|
---|
36 | #ifdef __cplusplus
|
---|
37 | extern "C" {
|
---|
38 | #endif
|
---|
39 | struct Z_SearchInfoReport_s {
|
---|
40 | Z_InternationalString *subqueryId; /* OPT */
|
---|
41 | bool_t *fullQuery;
|
---|
42 | Z_QueryExpression *subqueryExpression; /* OPT */
|
---|
43 | Z_QueryExpression *subqueryInterpretation; /* OPT */
|
---|
44 | Z_QueryExpression *subqueryRecommendation; /* OPT */
|
---|
45 | int *subqueryCount; /* OPT */
|
---|
46 | Z_IntUnit *subqueryWeight; /* OPT */
|
---|
47 | Z_ResultsByDB *resultsByDB; /* OPT */
|
---|
48 | };
|
---|
49 |
|
---|
50 | struct Z_SearchInfoReport {
|
---|
51 | int num;
|
---|
52 | Z_SearchInfoReport_s **elements;
|
---|
53 | };
|
---|
54 |
|
---|
55 | struct Z_ResultsByDB_sList {
|
---|
56 | int num;
|
---|
57 | Z_DatabaseName **elements;
|
---|
58 | };
|
---|
59 |
|
---|
60 | struct Z_ResultsByDB_s {
|
---|
61 | int which;
|
---|
62 | union {
|
---|
63 | Odr_null *all;
|
---|
64 | Z_ResultsByDB_sList *list;
|
---|
65 | #define Z_ResultsByDB_s_all 1
|
---|
66 | #define Z_ResultsByDB_s_list 2
|
---|
67 | } u;
|
---|
68 | int *count; /* OPT */
|
---|
69 | Z_InternationalString *resultSetName; /* OPT */
|
---|
70 | };
|
---|
71 |
|
---|
72 | struct Z_ResultsByDB {
|
---|
73 | int num;
|
---|
74 | Z_ResultsByDB_s **elements;
|
---|
75 | };
|
---|
76 |
|
---|
77 | struct Z_QueryExpressionTerm {
|
---|
78 | Z_Term *queryTerm;
|
---|
79 | Z_InternationalString *termComment; /* OPT */
|
---|
80 | };
|
---|
81 |
|
---|
82 | struct Z_QueryExpression {
|
---|
83 | int which;
|
---|
84 | union {
|
---|
85 | Z_QueryExpressionTerm *term;
|
---|
86 | Z_Query *query;
|
---|
87 | #define Z_QueryExpression_term 1
|
---|
88 | #define Z_QueryExpression_query 2
|
---|
89 | } u;
|
---|
90 | };
|
---|
91 |
|
---|
92 | #ifdef __cplusplus
|
---|
93 | }
|
---|
94 | #endif
|
---|
95 | #endif
|
---|