2 * Copyright (c) 1995, Index Data.
4 * Permission to use, copy, modify, distribute, and sell this software and
5 * its documentation, in whole or in part, for any purpose, is hereby granted,
8 * 1. This copyright and permission notice appear in all copies of the
9 * software and its documentation. Notices of copyright or attribution
10 * which appear at the beginning of any file must remain unchanged.
12 * 2. The names of Index Data or the individual authors may not be used to
13 * endorse or promote products derived from this software without specific
14 * prior written permission.
16 * THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTY OF ANY KIND,
17 * EXPRESS, IMPLIED, OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
18 * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
19 * IN NO EVENT SHALL INDEX DATA BE LIABLE FOR ANY SPECIAL, INCIDENTAL,
20 * INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES
21 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR
22 * NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
23 * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
33 typedef struct Z_OccurValues
36 int *howMany; /* OPTIONAL */
39 typedef struct Z_Occurrences
42 #define Z_Occurrences_all 0
43 #define Z_Occurrences_last 1
44 #define Z_Occurrences_values 2
49 Z_OccurValues *values;
53 typedef struct Z_SpecificTag
55 int *tagType; /* OPTIONAL */
56 Z_StringOrNumeric *tagValue;
57 Z_Occurrences *occurrences; /* OPTIONAL */
60 typedef struct Z_ETagUnit
63 #define Z_ETagUnit_specificTag 0
64 #define Z_ETagUnit_wildThing 1
65 #define Z_ETagUnit_wildPath 2
68 Z_SpecificTag *specificTag;
69 Z_Occurrences *wildThing;
74 typedef struct Z_ETagPath
80 typedef struct Z_SimpleElement
83 Z_Variant *variantRequest; /* OPTIONAL */
86 typedef struct Z_CompoPrimitives
92 typedef struct Z_CompoSpecs
95 Z_SimpleElement **specs;
98 typedef struct Z_CompositeElement
101 #define Z_CompoElement_primitives 0
102 #define Z_CompoElement_specs 1
105 Z_CompoPrimitives *primitives;
108 Z_ETagPath *deliveryTag;
109 Z_Variant *variantRequest;
110 } Z_CompositeElement;
112 typedef struct Z_ElementRequest
115 #define Z_ERequest_simpleElement 0
116 #define Z_ERequest_compositeElement 1
119 Z_SimpleElement *simpleElement;
120 Z_CompositeElement *compositeElement;
124 typedef struct Z_Espec1
126 int num_elementSetNames;
127 char **elementSetNames; /* OPTIONAL */
128 Odr_oid *defaultVariantSetId; /* OPTIONAL */
129 Z_Variant *defaultVariantRequest; /* OPTIONAL */
130 int *defaultTagType; /* OPTIONAL */
132 Z_ElementRequest **elements; /* OPTIONAL */
135 int z_Espec1(ODR o, Z_Espec1 **p, int opt);