YAZ  5.23.1
z-charneg.h
Go to the documentation of this file.
1 
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 
17 YAZ_EXPORT int z_CharSetandLanguageNegotiation(ODR o, Z_CharSetandLanguageNegotiation **p, int opt, const char *name);
18 
20 YAZ_EXPORT int z_OriginProposal_0(ODR o, Z_OriginProposal_0 **p, int opt, const char *name);
21 
23 YAZ_EXPORT int z_OriginProposal(ODR o, Z_OriginProposal **p, int opt, const char *name);
24 
26 YAZ_EXPORT int z_TargetResponse(ODR o, Z_TargetResponse **p, int opt, const char *name);
27 
29 YAZ_EXPORT int z_PrivateCharacterSetViaOid(ODR o, Z_PrivateCharacterSetViaOid **p, int opt, const char *name);
30 
32 YAZ_EXPORT int z_PrivateCharacterSet(ODR o, Z_PrivateCharacterSet **p, int opt, const char *name);
33 
35 YAZ_EXPORT int z_Iso2022OriginProposal(ODR o, Z_Iso2022OriginProposal **p, int opt, const char *name);
36 
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 
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 
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
61  int which;
62  union {
65 #define Z_CharSetandLanguageNegotiation_proposal 1
66 #define Z_CharSetandLanguageNegotiation_response 2
67  } u;
68 };
69 
71  int which;
72  union {
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 
88 };
89 
91  int which;
92  union {
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 */
104 };
105 
107  int num;
109 };
110 
112  int which;
113  union {
117 #define Z_PrivateCharacterSet_viaOid 1
118 #define Z_PrivateCharacterSet_externallySpecified 2
119 #define Z_PrivateCharacterSet_previouslyAgreedUpon 3
120  } u;
121 };
122 
130 };
131 
138 };
139 
140 struct Z_Iso2022 {
141  int which;
142  union {
145 #define Z_Iso2022_originProposal 1
146 #define Z_Iso2022_targetResponse 2
147  } u;
148 };
149 
151  int which;
152  union {
155 #define Z_Environment_sevenBit 1
156 #define Z_Environment_eightBit 2
157  } u;
158 };
159 
160 struct Z_InitialSet {
161  Odr_int *g0; /* OPT */
162  Odr_int *g1; /* OPT */
163  Odr_int *g2; /* OPT */
164  Odr_int *g3; /* OPT */
166  Odr_int *c1; /* OPT */
167 };
168 
170 #define Z_LeftAndRight_g0 0
171 #define Z_LeftAndRight_g1 1
172 #define Z_LeftAndRight_g2 2
173 #define Z_LeftAndRight_g3 3
175 #define Z_LeftAndRight_g1 1
176 #define Z_LeftAndRight_g2 2
177 #define Z_LeftAndRight_g3 3
178  Odr_int *gRight; /* OPT */
179 };
180 
181 struct Z_Iso10646 {
182  Odr_oid *collections; /* OPT */
184 };
185 
186 #ifdef __cplusplus
187 }
188 #endif
189 #endif
Odr_oid * collections
Definition: z-charneg.h:182
Header for ODR (Open Data Representation)
Odr_bool * recordsInSelectedCharSets
Definition: z-charneg.h:87
Z_InitialSet ** proposedInitialSets
Definition: z-charneg.h:128
Odr_int * g0
Definition: z-charneg.h:161
Odr_int ** selectedSets
Definition: z-charneg.h:135
Z_Iso10646 * iso10646
Definition: z-charneg.h:94
int z_Iso10646(ODR o, Z_Iso10646 **p, int opt, const char *name)
Definition: z-charneg.c:227
int z_CharSetandLanguageNegotiation(ODR o, Z_CharSetandLanguageNegotiation **p, int opt, const char *name)
Definition: z-charneg.c:12
Z_PrivateCharacterSetViaOid * viaOid
Definition: z-charneg.h:114
Z_Environment * proposedEnvironment
Definition: z-charneg.h:124
char * name
Definition: initopt.c:18
Odr_null * none
Definition: z-charneg.h:96
short Odr_oid
Definition: oid_util.h:42
Odr_null * previouslyAgreedUpon
Definition: z-charneg.h:116
int z_PrivateCharacterSet(ODR o, Z_PrivateCharacterSet **p, int opt, const char *name)
Definition: z-charneg.c:104
nmem_int_t Odr_int
Definition: odr.h:47
int z_LeftAndRight(ODR o, Z_LeftAndRight **p, int opt, const char *name)
Definition: z-charneg.c:215
Z_TargetResponse * response
Definition: z-charneg.h:64
Odr_int * gLeft
Definition: z-charneg.h:174
int z_OriginProposal(ODR o, Z_OriginProposal **p, int opt, const char *name)
Definition: z-charneg.c:50
Z_External * externallySpecified
Definition: z-charneg.h:115
Z_InitialSet * selectedinitialSet
Definition: z-charneg.h:136
int num_proposedCharSets
Definition: z-charneg.h:83
Odr_null * eightBit
Definition: z-charneg.h:154
int z_OriginProposal_0(ODR o, Z_OriginProposal_0 **p, int opt, const char *name)
Definition: z-charneg.c:30
Odr_int * g2
Definition: z-charneg.h:163
Z_LeftAndRight * selectedLeftAndRight
Definition: z-charneg.h:137
Odr_null * sevenBit
Definition: z-charneg.h:153
nmem_bool_t Odr_bool
Definition: odr.h:48
union Z_CharSetandLanguageNegotiation::@40 u
Z_PrivateCharacterSet * zprivate
Definition: z-charneg.h:95
Z_Iso2022TargetResponse * targetResponse
Definition: z-charneg.h:144
Odr_bool * recordsInSelectedCharSets
Definition: z-charneg.h:103
Z_Iso2022OriginProposal * originProposal
Definition: z-charneg.h:143
int z_PrivateCharacterSetViaOid(ODR o, Z_PrivateCharacterSetViaOid **p, int opt, const char *name)
Definition: z-charneg.c:92
int z_Environment(ODR o, Z_Environment **p, int opt, const char *name)
Definition: z-charneg.c:177
int z_InitialSet(ODR o, Z_InitialSet **p, int opt, const char *name)
Definition: z-charneg.c:195
int z_TargetResponse(ODR o, Z_TargetResponse **p, int opt, const char *name)
Definition: z-charneg.c:66
Z_OriginProposal * proposal
Definition: z-charneg.h:63
Definition: odr.h:124
int num_proposedlanguages
Definition: z-charneg.h:85
Z_LanguageCode ** proposedlanguages
Definition: z-charneg.h:86
ASN.1 Module RecordSyntax-explain.
Z_OriginProposal_0 ** proposedCharSets
Definition: z-charneg.h:84
Z_Iso2022 * iso2022
Definition: z-charneg.h:93
Z_LeftAndRight * proposedLeftAndRight
Definition: z-charneg.h:129
int opt
Definition: initopt.c:19
Odr_int * gRight
Definition: z-charneg.h:178
int z_Iso2022OriginProposal(ODR o, Z_Iso2022OriginProposal **p, int opt, const char *name)
Definition: z-charneg.c:124
Z_InternationalString Z_LanguageCode
Definition: z-exp.h:172
int z_Iso2022TargetResponse(ODR o, Z_Iso2022TargetResponse **p, int opt, const char *name)
Definition: z-charneg.c:142
structure for all known EXTERNALs
Definition: prt-ext.h:58
Odr_int * c0
Definition: z-charneg.h:165
Z_Iso10646 * iso10646
Definition: z-charneg.h:74
Z_LanguageCode * selectedLanguage
Definition: z-charneg.h:102
Z_Environment * selectedEnvironment
Definition: z-charneg.h:133
Odr_int * c1
Definition: z-charneg.h:166
int z_Iso2022(ODR o, Z_Iso2022 **p, int opt, const char *name)
Definition: z-charneg.c:159
Odr_int * g3
Definition: z-charneg.h:164
Odr_oid * encodingLevel
Definition: z-charneg.h:183
Z_PrivateCharacterSet * zprivate
Definition: z-charneg.h:75
Z_Iso2022 * iso2022
Definition: z-charneg.h:73
int which
Definition: z-charneg.h:141
Odr_int ** proposedSets
Definition: z-charneg.h:126
void Odr_null
Definition: odr.h:105
Odr_int * g1
Definition: z-charneg.h:162