X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fyaz%2Foid.h;h=d59209f8bd70a13d8febb1a8ea03cf31829fb295;hb=32687c1504015e0675d49983707576f8db9b7bfc;hp=c0beb28e99046542ed6aa24031a4a459cd4da08d;hpb=5381b2f81bb793e364cd5b2a910e026ce84d9d05;p=yaz-moved-to-github.git diff --git a/include/yaz/oid.h b/include/yaz/oid.h index c0beb28..d59209f 100644 --- a/include/yaz/oid.h +++ b/include/yaz/oid.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 1995-2000, Index Data. + * Copyright (C) 1995-2005, Index Data ApS * * 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.18 2003-07-18 19:54:30 mike Exp $ + * $Id: oid.h,v 1.28 2006-05-08 19:45:29 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 @@ -34,6 +42,7 @@ YAZ_BEGIN_CDECL #define OID_SIZE 20 +#define OID_STR_MAX 256 typedef enum oid_proto { @@ -42,7 +51,7 @@ typedef enum oid_proto PROTO_SR, PROTO_GENERAL, PROTO_WAIS, - PROTO_HTTP, + PROTO_HTTP } oid_proto; typedef enum oid_class @@ -212,7 +221,17 @@ typedef enum oid_value VAL_ZEEREX, VAL_CQL, VAL_DBUPDATE1, + VAL_OCLCUI, + VAL_ID_CHARSET, + VAL_EXTLITE, + VAL_NACSISCATP, + VAL_FINMARC2000, +/* 120 */ + + VAL_MARC21FIN, + VAL_CHARNEG4, + VAL_XMLES, /* VAL_DYNAMIC must have highest value */ VAL_DYNAMIC, @@ -238,8 +257,8 @@ YAZ_EXPORT int oid_oidlen(int *o); YAZ_EXPORT oid_value oid_getvalbyname(const char *name); YAZ_EXPORT void oid_setprivateoids(oident *list); YAZ_EXPORT struct oident *oid_addent (int *oid, enum oid_proto proto, - enum oid_class oclass, - const char *desc, int value); + enum oid_class oclass, + const char *desc, int value); YAZ_EXPORT void oid_trav (void (*func)(struct oident *oidinfo, void *vp), void *vp); @@ -249,8 +268,16 @@ 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); + char *oidbuf); YAZ_END_CDECL #endif +/* + * Local variables: + * c-basic-offset: 4 + * indent-tabs-mode: nil + * End: + * vim: shiftwidth=4 tabstop=8 expandtab + */ +