X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fyaz%2Foid.h;h=88d4ee0d452b8f107c33325889ac0b49b8189865;hb=6c35039e69102dbbce08e8f39a2fbbade4406c16;hp=cfb4bce752d0f6e4dd7b2110cc5d32d6a92cb27e;hpb=ac286ae76051058c8e340bf84eb98391340b7d22;p=yaz-moved-to-github.git diff --git a/include/yaz/oid.h b/include/yaz/oid.h index cfb4bce..88d4ee0 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,9 +23,17 @@ * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE * OF THIS SOFTWARE. * - * $Id: oid.h,v 1.14 2003-02-14 18:49:23 adam Exp $ + * $Id: oid.h,v 1.23 2004-12-22 23:45:13 adam Exp $ */ +/** + * \file oid.h + * \brief Header for OID database + * + * More or less protocol-transparent OID database. + * We could (and should?) extend this so that the user app can add new + * entries to the list at initialization. + */ #ifndef OID_H #define OID_H @@ -42,7 +50,7 @@ typedef enum oid_proto PROTO_SR, PROTO_GENERAL, PROTO_WAIS, - PROTO_SRW, + PROTO_HTTP } oid_proto; typedef enum oid_class @@ -211,6 +219,17 @@ 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_CHARNEG4, /* VAL_DYNAMIC must have highest value */ VAL_DYNAMIC, @@ -244,6 +263,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