YAZ  5.23.1
z-espec1.h
Go to the documentation of this file.
1 
7 #ifndef z_espec1_H
8 #define z_espec1_H
9 
10 #include <yaz/odr.h>
11 #include <yaz/z-grs.h>
12 #include <yaz/z-core.h>
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 typedef struct Z_Espec1 Z_Espec1;
18 YAZ_EXPORT int z_Espec1(ODR o, Z_Espec1 **p, int opt, const char *name);
19 
22 
25 
27 YAZ_EXPORT int z_ElementRequestCompositeElement(ODR o, Z_ElementRequestCompositeElement **p, int opt, const char *name);
28 
30 YAZ_EXPORT int z_ElementRequest(ODR o, Z_ElementRequest **p, int opt, const char *name);
31 
33 YAZ_EXPORT int z_SimpleElement(ODR o, Z_SimpleElement **p, int opt, const char *name);
34 
36 YAZ_EXPORT int z_SpecificTag(ODR o, Z_SpecificTag **p, int opt, const char *name);
37 
38 typedef struct Z_ETagUnit Z_ETagUnit;
39 YAZ_EXPORT int z_ETagUnit(ODR o, Z_ETagUnit **p, int opt, const char *name);
40 
41 typedef struct Z_ETagPath Z_ETagPath;
42 YAZ_EXPORT int z_ETagPath(ODR o, Z_ETagPath **p, int opt, const char *name);
43 
45 YAZ_EXPORT int z_OccurValues(ODR o, Z_OccurValues **p, int opt, const char *name);
46 
48 YAZ_EXPORT int z_Occurrences(ODR o, Z_Occurrences **p, int opt, const char *name);
49 #ifdef __cplusplus
50 }
51 #endif
52 #ifdef __cplusplus
53 extern "C" {
54 #endif
55 struct Z_Espec1 {
60  Odr_int *defaultTagType; /* OPT */
63 };
64 
66  int num;
68 };
69 
71  int num;
73 };
74 
76  int which;
77  union {
80 #define Z_ElementRequestCompositeElement_primitives 1
81 #define Z_ElementRequestCompositeElement_specs 2
82  } u;
85 };
86 
88  int which;
89  union {
92 #define Z_ERequest_simpleElement 1
93 #define Z_ERequest_compositeElement 2
94  } u;
95 };
96 
100 };
101 
103  Odr_int *tagType; /* OPT */
106 };
107 
108 struct Z_ETagUnit {
109  int which;
110  union {
114 #define Z_ETagUnit_specificTag 1
115 #define Z_ETagUnit_wildThing 2
116 #define Z_ETagUnit_wildPath 3
117  } u;
118 };
119 
120 struct Z_ETagPath {
121  int num_tags;
123 };
124 
127  Odr_int *howMany; /* OPT */
128 };
129 
131  int which;
132  union {
136 #define Z_Occurrences_all 1
137 #define Z_Occurrences_last 2
138 #define Z_Occurrences_values 3
139  } u;
140 };
141 
142 #ifdef __cplusplus
143 }
144 #endif
145 #endif
int z_ElementRequest(ODR o, Z_ElementRequest **p, int opt, const char *name)
Definition: z-espec1.c:78
Odr_int * defaultTagType
Definition: z-espec1.h:60
Header for ODR (Open Data Representation)
ASN.1 Module RecordSyntax-generic.
char Z_InternationalString
Definition: z-core.h:301
Odr_int * start
Definition: z-espec1.h:126
ASN.1 Module Z39-50-APDU-1995.
int num_elementSetNames
Definition: z-espec1.h:56
Z_Variant * variantRequest
Definition: z-espec1.h:99
Z_SpecificTag * specificTag
Definition: z-espec1.h:111
int num_elements
Definition: z-espec1.h:61
char * name
Definition: initopt.c:18
int z_Occurrences(ODR o, Z_Occurrences **p, int opt, const char *name)
Definition: z-espec1.c:166
Z_Variant * defaultVariantRequest
Definition: z-espec1.h:59
short Odr_oid
Definition: oid_util.h:42
nmem_int_t Odr_int
Definition: odr.h:47
int z_ETagUnit(ODR o, Z_ETagUnit **p, int opt, const char *name)
Definition: z-espec1.c:122
Z_StringOrNumeric * tagValue
Definition: z-espec1.h:104
Odr_int * tagType
Definition: z-espec1.h:103
Z_ElementRequestCompositeElementPrimitives * primitives
Definition: z-espec1.h:78
Odr_oid * defaultVariantSetId
Definition: z-espec1.h:58
int z_OccurValues(ODR o, Z_OccurValues **p, int opt, const char *name)
Definition: z-espec1.c:154
int z_ElementRequestCompositeElement(ODR o, Z_ElementRequestCompositeElement **p, int opt, const char *name)
Definition: z-espec1.c:56
Z_OccurValues * values
Definition: z-espec1.h:135
int z_Espec1(ODR o, Z_Espec1 **p, int opt, const char *name)
Definition: z-espec1.c:12
Z_ElementRequestCompositeElement * compositeElement
Definition: z-espec1.h:91
int z_SimpleElement(ODR o, Z_SimpleElement **p, int opt, const char *name)
Definition: z-espec1.c:96
int z_ElementRequestCompositeElementSpecs(ODR o, Z_ElementRequestCompositeElementSpecs **p, int opt, const char *name)
Definition: z-espec1.c:44
int z_SpecificTag(ODR o, Z_SpecificTag **p, int opt, const char *name)
Definition: z-espec1.c:108
int z_ETagPath(ODR o, Z_ETagPath **p, int opt, const char *name)
Definition: z-espec1.c:142
Z_InternationalString ** elementSetNames
Definition: z-espec1.h:57
Z_ElementRequest ** elements
Definition: z-espec1.h:62
Definition: odr.h:124
int which
Definition: z-espec1.h:109
Z_InternationalString ** elements
Definition: z-espec1.h:67
int opt
Definition: initopt.c:19
Odr_null * last
Definition: z-espec1.h:134
Z_SimpleElement * simpleElement
Definition: z-espec1.h:90
int z_ElementRequestCompositeElementPrimitives(ODR o, Z_ElementRequestCompositeElementPrimitives **p, int opt, const char *name)
Definition: z-espec1.c:32
int num_tags
Definition: z-espec1.h:121
Odr_int * howMany
Definition: z-espec1.h:127
Z_ETagUnit ** tags
Definition: z-espec1.h:122
Z_Occurrences * wildThing
Definition: z-espec1.h:112
Z_ETagPath * path
Definition: z-espec1.h:98
Z_Occurrences * occurrences
Definition: z-espec1.h:105
Odr_null * wildPath
Definition: z-espec1.h:113
Z_ElementRequestCompositeElementSpecs * specs
Definition: z-espec1.h:79
Odr_null * all
Definition: z-espec1.h:133
void Odr_null
Definition: odr.h:105