2 * Copyright (c) 1995-1997, 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 name 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
27 * Revision 1.25 1998-02-10 15:31:52 adam
28 * Implemented date and time structure. Changed the Update Extended
31 * Revision 1.24 1997/09/29 13:18:59 adam
32 * Added function, oid_ent_to_oid, to replace the function
33 * oid_getoidbyent, which is not thread safe.
35 * Revision 1.23 1997/09/01 08:49:50 adam
36 * New windows NT/95 port using MSV5.0. To export DLL functions the
37 * YAZ_EXPORT modifier was added. Defined in yconfig.h.
39 * Revision 1.22 1997/08/19 08:45:13 quinn
42 * Revision 1.21 1997/08/19 08:43:49 quinn
45 * Revision 1.19 1997/07/28 12:34:42 adam
46 * Added new OID entries (RVDM).
48 * Revision 1.18 1997/05/14 06:53:42 adam
51 * Revision 1.17 1997/05/02 08:39:27 quinn
52 * Support for private OID table added. Thanks to Ronald van der Meer
54 * Revision 1.16 1997/04/30 08:52:08 quinn
57 * Revision 1.15 1996/10/09 15:54:57 quinn
58 * Added SearchInfoReport
60 * Revision 1.14 1996/10/07 15:29:17 quinn
63 * Revision 1.13 1996/02/20 17:57:53 adam
64 * Added const to oid_getvalbyname.
66 * Revision 1.12 1996/02/20 12:52:37 quinn
69 * Revision 1.11 1996/01/02 08:57:30 quinn
70 * Changed enums in the ASN.1 .h files to #defines. Changed oident.class to oclass
72 * Revision 1.10 1995/11/13 09:27:31 quinn
73 * Fiddling with the variant stuff.
75 * Revision 1.9 1995/10/12 10:34:45 quinn
78 * Revision 1.8 1995/10/10 16:27:08 quinn
79 * *** empty log message ***
81 * Revision 1.7 1995/09/29 17:12:05 quinn
84 * Revision 1.6 1995/09/27 15:02:48 quinn
85 * Modified function heads & prototypes.
87 * Revision 1.5 1995/09/12 11:31:46 quinn
90 * Revision 1.4 1995/06/27 13:20:32 quinn
93 * Revision 1.3 1995/05/29 08:11:33 quinn
94 * Moved oid from odr/asn to util.
96 * Revision 1.2 1995/05/16 08:50:35 quinn
97 * License, documentation, and memory fixes
99 * Revision 1.1 1995/03/30 09:39:41 quinn
100 * Moved .h files to include directory
102 * Revision 1.1 1995/03/27 08:32:13 quinn
119 typedef enum oid_proto
127 typedef enum oid_class
145 typedef enum oid_value
227 typedef struct oident
236 YAZ_EXPORT int *oid_getoidbyent(struct oident *ent);
237 YAZ_EXPORT int *oid_ent_to_oid(struct oident *ent, int *dst);
238 YAZ_EXPORT struct oident *oid_getentbyoid(int *o);
239 YAZ_EXPORT void oid_oidcpy(int *t, int *s);
240 YAZ_EXPORT void oid_oidcat(int *t, int *s);
241 YAZ_EXPORT int oid_oidcmp(int *o1, int *o2);
242 YAZ_EXPORT int oid_oidlen(int *o);
243 YAZ_EXPORT oid_value oid_getvalbyname(const char *name);
244 YAZ_EXPORT void oid_setprivateoids(oident *list);