--- 1.8.5 2002/XX/XX
+New call oid_trav, that visits all registered OIDs via callback.
+
Function ZOOM_record_get now returns const char pointer rather than
void pointer. It saves a lot of type casts.
* LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
* OF THIS SOFTWARE.
*
- * $Id: oid.h,v 1.8 2001-10-29 09:16:27 adam Exp $
+ * $Id: oid.h,v 1.9 2002-01-29 13:47:33 adam Exp $
*/
#ifndef OID_H
YAZ_EXPORT struct oident *oid_addent (int *oid, enum oid_proto proto,
enum oid_class oclass,
const char *desc, int value);
+
+YAZ_EXPORT void oid_trav (void (*func)(struct oident *oidinfo, void *vp),
+ void *vp);
+
YAZ_EXPORT void oid_init(void);
YAZ_EXPORT void oid_exit(void);
* 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 $
*/
/*
{
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);
+}