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