Use option -fPIC for g++
[yaz4j-moved-to-github.git] / dependencies / yaz_3.0.14 / include / yaz / z-charneg.h
1 /** \file z-charneg.h
2     \brief ASN.1 Module NegotiationRecordDefinition-charSetandLanguageNegotiation-3
3
4     Generated automatically by YAZ ASN.1 Compiler 0.4
5 */
6
7 #ifndef z_charneg_H
8 #define z_charneg_H
9
10 #include <yaz/odr.h>
11 #include <yaz/z-exp.h>
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15
16 typedef struct Z_CharSetandLanguageNegotiation Z_CharSetandLanguageNegotiation;
17 YAZ_EXPORT int z_CharSetandLanguageNegotiation (ODR o, Z_CharSetandLanguageNegotiation **p, int opt, const char *name);
18
19 typedef struct Z_OriginProposal_0 Z_OriginProposal_0;
20 YAZ_EXPORT int z_OriginProposal_0 (ODR o, Z_OriginProposal_0 **p, int opt, const char *name);
21
22 typedef struct Z_OriginProposal Z_OriginProposal;
23 YAZ_EXPORT int z_OriginProposal (ODR o, Z_OriginProposal **p, int opt, const char *name);
24
25 typedef struct Z_TargetResponse Z_TargetResponse;
26 YAZ_EXPORT int z_TargetResponse (ODR o, Z_TargetResponse **p, int opt, const char *name);
27
28 typedef struct Z_PrivateCharacterSetViaOid Z_PrivateCharacterSetViaOid;
29 YAZ_EXPORT int z_PrivateCharacterSetViaOid (ODR o, Z_PrivateCharacterSetViaOid **p, int opt, const char *name);
30
31 typedef struct Z_PrivateCharacterSet Z_PrivateCharacterSet;
32 YAZ_EXPORT int z_PrivateCharacterSet (ODR o, Z_PrivateCharacterSet **p, int opt, const char *name);
33
34 typedef struct Z_Iso2022OriginProposal Z_Iso2022OriginProposal;
35 YAZ_EXPORT int z_Iso2022OriginProposal (ODR o, Z_Iso2022OriginProposal **p, int opt, const char *name);
36
37 typedef struct Z_Iso2022TargetResponse Z_Iso2022TargetResponse;
38 YAZ_EXPORT int z_Iso2022TargetResponse (ODR o, Z_Iso2022TargetResponse **p, int opt, const char *name);
39
40 typedef struct Z_Iso2022 Z_Iso2022;
41 YAZ_EXPORT int z_Iso2022 (ODR o, Z_Iso2022 **p, int opt, const char *name);
42
43 typedef struct Z_Environment Z_Environment;
44 YAZ_EXPORT int z_Environment (ODR o, Z_Environment **p, int opt, const char *name);
45
46 typedef struct Z_InitialSet Z_InitialSet;
47 YAZ_EXPORT int z_InitialSet (ODR o, Z_InitialSet **p, int opt, const char *name);
48
49 typedef struct Z_LeftAndRight Z_LeftAndRight;
50 YAZ_EXPORT int z_LeftAndRight (ODR o, Z_LeftAndRight **p, int opt, const char *name);
51
52 typedef struct Z_Iso10646 Z_Iso10646;
53 YAZ_EXPORT int z_Iso10646 (ODR o, Z_Iso10646 **p, int opt, const char *name);
54 #ifdef __cplusplus
55 }
56 #endif
57 #ifdef __cplusplus
58 extern "C" {
59 #endif
60 struct Z_CharSetandLanguageNegotiation {
61         int which;
62         union {
63                 Z_OriginProposal *proposal;
64                 Z_TargetResponse *response;
65 #define Z_CharSetandLanguageNegotiation_proposal 1
66 #define Z_CharSetandLanguageNegotiation_response 2
67         } u;
68 };
69
70 struct Z_OriginProposal_0 {
71         int which;
72         union {
73                 Z_Iso2022 *iso2022;
74                 Z_Iso10646 *iso10646;
75                 Z_PrivateCharacterSet *zprivate;
76 #define Z_OriginProposal_0_iso2022 1
77 #define Z_OriginProposal_0_iso10646 2
78 #define Z_OriginProposal_0_private 3
79         } u;
80 };
81
82 struct Z_OriginProposal {
83         int num_proposedCharSets;
84         Z_OriginProposal_0 **proposedCharSets; /* OPT */
85         int num_proposedlanguages;
86         Z_LanguageCode **proposedlanguages; /* OPT */
87         bool_t *recordsInSelectedCharSets; /* OPT */
88 };
89
90 struct Z_TargetResponse {
91         int which;
92         union {
93                 Z_Iso2022 *iso2022;
94                 Z_Iso10646 *iso10646;
95                 Z_PrivateCharacterSet *zprivate;
96                 Odr_null *none;
97 #define Z_TargetResponse_iso2022 1
98 #define Z_TargetResponse_iso10646 2
99 #define Z_TargetResponse_private 3
100 #define Z_TargetResponse_none 4
101         } u; /* OPT */
102         Z_LanguageCode *selectedLanguage; /* OPT */
103         bool_t *recordsInSelectedCharSets; /* OPT */
104 };
105
106 struct Z_PrivateCharacterSetViaOid {
107         int num;
108         Odr_oid **elements;
109 };
110
111 struct Z_PrivateCharacterSet {
112         int which;
113         union {
114                 Z_PrivateCharacterSetViaOid *viaOid;
115                 Z_External *externallySpecified;
116                 Odr_null *previouslyAgreedUpon;
117 #define Z_PrivateCharacterSet_viaOid 1
118 #define Z_PrivateCharacterSet_externallySpecified 2
119 #define Z_PrivateCharacterSet_previouslyAgreedUpon 3
120         } u;
121 };
122
123 struct Z_Iso2022OriginProposal {
124         Z_Environment *proposedEnvironment; /* OPT */
125         int num_proposedSets;
126         int **proposedSets;
127         int num_proposedInitialSets;
128         Z_InitialSet **proposedInitialSets;
129         Z_LeftAndRight *proposedLeftAndRight;
130 };
131
132 struct Z_Iso2022TargetResponse {
133         Z_Environment *selectedEnvironment;
134         int num_selectedSets;
135         int **selectedSets;
136         Z_InitialSet *selectedinitialSet;
137         Z_LeftAndRight *selectedLeftAndRight;
138 };
139
140 struct Z_Iso2022 {
141         int which;
142         union {
143                 Z_Iso2022OriginProposal *originProposal;
144                 Z_Iso2022TargetResponse *targetResponse;
145 #define Z_Iso2022_originProposal 1
146 #define Z_Iso2022_targetResponse 2
147         } u;
148 };
149
150 struct Z_Environment {
151         int which;
152         union {
153                 Odr_null *sevenBit;
154                 Odr_null *eightBit;
155 #define Z_Environment_sevenBit 1
156 #define Z_Environment_eightBit 2
157         } u;
158 };
159
160 struct Z_InitialSet {
161         int *g0; /* OPT */
162         int *g1; /* OPT */
163         int *g2; /* OPT */
164         int *g3; /* OPT */
165         int *c0;
166         int *c1; /* OPT */
167 };
168
169 struct Z_LeftAndRight {
170 #define Z_LeftAndRight_g0 0
171 #define Z_LeftAndRight_g1 1
172 #define Z_LeftAndRight_g2 2
173 #define Z_LeftAndRight_g3 3
174         int *gLeft;
175 #define Z_LeftAndRight_g1 1
176 #define Z_LeftAndRight_g2 2
177 #define Z_LeftAndRight_g3 3
178         int *gRight; /* OPT */
179 };
180
181 struct Z_Iso10646 {
182         Odr_oid *collections; /* OPT */
183         Odr_oid *encodingLevel;
184 };
185
186 #ifdef __cplusplus
187 }
188 #endif
189 #endif