X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Foid_db.c;h=2ea139daa7f6c039d6a9c7a7c0bc353b1e2e2bad;hb=3b792849c676d96918850e2f1e0af87a75278501;hp=8318018c5d02343d5c7abf90f8feadf8abcd4daa;hpb=7a98e9bfbb9d5fe7d44822a9838e3becbdce9363;p=yaz-moved-to-github.git diff --git a/src/oid_db.c b/src/oid_db.c index 8318018..2ea139d 100644 --- a/src/oid_db.c +++ b/src/oid_db.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2007, Index Data ApS * See the file LICENSE for details. * - * $Id: oid_db.c,v 1.8 2007-05-08 08:22:36 adam Exp $ + * $Id: oid_db.c,v 1.9 2007-06-24 19:27:12 adam Exp $ */ /** @@ -107,6 +107,16 @@ const char *yaz_oid_to_string_buf(const Odr_oid *oid, oid_class *oclass, char *b return oid_oid_to_dotstring(oid, buf); } + +char *oid_name_to_dotstring(oid_class oclass, const char *name, char *oid_buf) +{ + const Odr_oid *oid = yaz_string_to_oid(yaz_oid_std(), oclass, name); + if (oid) + return oid_oid_to_dotstring(oid, oid_buf); + return 0; +} + + int yaz_oid_is_iso2709(const Odr_oid *oid) { if (oid_oidlen(oid) == 6 && oid[0] == 1 && oid[1] == 2