X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fyaz%2Foid.h;h=f47911ffbe08131321851fa8c663eec67bb0b094;hb=725fc033b729b22a1e0cfba614192b6fbfaeda4f;hp=d9f18df6db677208494bdda6620380fa301a1911;hpb=4d531a1a9131d69c3b6c27fbac42837e22cff61c;p=yaz-moved-to-github.git diff --git a/include/yaz/oid.h b/include/yaz/oid.h index d9f18df..f47911f 100644 --- a/include/yaz/oid.h +++ b/include/yaz/oid.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 1995-2000, Index Data. + * Copyright (c) 1995-2003, Index Data. * * Permission to use, copy, modify, distribute, and sell this software and * its documentation, in whole or in part, for any purpose, is hereby granted, @@ -23,7 +23,7 @@ * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE * OF THIS SOFTWARE. * - * $Id: oid.h,v 1.13 2003-01-06 08:20:27 adam Exp $ + * $Id: oid.h,v 1.21 2003-11-19 13:47:20 mike Exp $ */ #ifndef OID_H @@ -41,7 +41,8 @@ typedef enum oid_proto PROTO_Z3950, PROTO_SR, PROTO_GENERAL, - PROTO_WAIS + PROTO_WAIS, + PROTO_HTTP } oid_proto; typedef enum oid_class @@ -210,6 +211,16 @@ typedef enum oid_value VAL_BIB2, VAL_ZEEREX, VAL_CQL, + VAL_DBUPDATE1, + + VAL_OCLCUI, + VAL_ID_CHARSET, + VAL_EXTLITE, + VAL_NACSISCATP, + VAL_FINMARC2000, +/* 120 */ + + VAL_MARC21FIN, /* VAL_DYNAMIC must have highest value */ VAL_DYNAMIC, @@ -243,6 +254,10 @@ YAZ_EXPORT void oid_trav (void (*func)(struct oident *oidinfo, void *vp), YAZ_EXPORT void oid_init(void); YAZ_EXPORT void oid_exit(void); +YAZ_EXPORT int *oid_name_to_oid(oid_class oclass, const char *name, int *oid); +YAZ_EXPORT char *oid_to_dotstring(const int *oid, char *oidbuf); +YAZ_EXPORT char *oid_name_to_dotstring(oid_class oclass, const char *name, + char *oidbuf); YAZ_END_CDECL