X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=include%2Fyaz%2Foid.h;h=ba6d60a8e2bf821d803aeabc771f904c6562f8e4;hb=47665d5b746ad35798802738a6bb9118b8b1f20d;hp=048918bd3d34b2f35c659b8a10c892a1f3f52695;hpb=4ca818ec201c9dcf5461e419002c95fd2eac620e;p=yaz-moved-to-github.git diff --git a/include/yaz/oid.h b/include/yaz/oid.h index 048918b..ba6d60a 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.15 2003-02-21 12:08:58 adam Exp $ + * $Id: oid.h,v 1.20 2003-09-16 19:38:53 adam Exp $ */ #ifndef OID_H @@ -42,7 +42,7 @@ typedef enum oid_proto PROTO_SR, PROTO_GENERAL, PROTO_WAIS, - PROTO_HTTP, + PROTO_HTTP } oid_proto; typedef enum oid_class @@ -211,6 +211,10 @@ typedef enum oid_value VAL_BIB2, VAL_ZEEREX, VAL_CQL, + VAL_DBUPDATE1, + + VAL_OCLCUI, + VAL_ID_CHARSET, /* VAL_DYNAMIC must have highest value */ VAL_DYNAMIC, @@ -244,6 +248,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