X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=util%2Foid.c;h=aefa1e1fd81c325ea74bea00d8d70be31bc93af2;hb=8e8cb340836e3ffd48d464755903f6795754a226;hp=284533b72cd9a560d3726876b0dec8335d20afdd;hpb=8e5a0692fb8d5d4d852eeb9782848d87ad25bfde;p=yaz-moved-to-github.git diff --git a/util/oid.c b/util/oid.c index 284533b..aefa1e1 100644 --- a/util/oid.c +++ b/util/oid.c @@ -2,7 +2,7 @@ * Copyright (c) 1995-2002, Index Data * See the file LICENSE for details. * - * $Id: oid.c,v 1.51 2002-01-26 20:50:59 adam Exp $ + * $Id: oid.c,v 1.52 2002-01-29 13:47:33 adam Exp $ */ /* @@ -538,3 +538,12 @@ void oid_setprivateoids(oident *list) { oid_transfer (list); } + +void oid_trav (void (*func)(struct oident *oidinfo, void *vp), void *vp) +{ + struct oident_list *ol; + + oid_init (); + for (ol = oident_table; ol; ol = ol->next) + (*func)(&ol->oident, vp); +}