X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fz3950oid.c;h=1da265218ff303fc2a04faa00ee248dc6bbb4370;hb=b925ea17d6f146a28d745b0d34e9eec6eafda21f;hp=86e370e18ccc8c00ef706df57c398619ac30fe2a;hpb=4c176312acdc3444c9afc820f76a393e64668e52;p=yaz-moved-to-github.git diff --git a/src/z3950oid.c b/src/z3950oid.c index 86e370e..1da2652 100644 --- a/src/z3950oid.c +++ b/src/z3950oid.c @@ -1,10 +1,14 @@ /* - * Copyright (C) 1995-2005, Index Data ApS + * Copyright (C) 1995-2006, Index Data ApS * See the file LICENSE for details. * - * $Id: z3950oid.c,v 1.2 2005-01-15 19:47:14 adam Exp $ + * $Id: z3950oid.c,v 1.5 2006-04-20 20:50:51 adam Exp $ */ +/** \file z3950oid.c + \brief Z3950 OID conversion utilities +*/ + #if HAVE_CONFIG_H #include #endif @@ -21,7 +25,7 @@ Odr_oid *yaz_oidval_to_z3950oid (ODR o, int oid_class, int oid_value) ident.value = (enum oid_value) oid_value; if (ident.value == VAL_NONE) - return 0; + return 0; return odr_oiddup(o, oid_ent_to_oid(&ident, oid)); } @@ -36,7 +40,7 @@ Odr_oid *yaz_str_to_z3950oid (ODR o, int oid_class, const char *str) ident.value = oid_getvalbyname(str); if (ident.value == VAL_NONE) - return 0; + return 0; return odr_oiddup(o, oid_ent_to_oid(&ident, oid)); } @@ -46,7 +50,7 @@ const char *yaz_z3950oid_to_str (Odr_oid *oid, int *oid_class) struct oident *ident = oid_getentbyoid(oid); if (!ident || ident->value == VAL_NONE) - return 0; + return 0; *oid_class = ident->oclass; return ident->desc; } @@ -70,13 +74,11 @@ const char* yaz_z3950_oid_value_to_str(oid_value ov, oid_class oc) return ""; } } - - /* * Local variables: - * tab-width: 8 * c-basic-offset: 4 + * indent-tabs-mode: nil * End: - * vim600: sw=4 ts=8 fdm=marker - * vim<600: sw=4 ts=8 + * vim: shiftwidth=4 tabstop=8 expandtab */ +