1999f82afSJohn Marino /* $NetBSD: symtab.h,v 1.1 2012/05/26 22:02:29 christos Exp $ */ 2999f82afSJohn Marino 3999f82afSJohn Marino /*- 4999f82afSJohn Marino * Copyright (c) 2012 The NetBSD Foundation, Inc. 5999f82afSJohn Marino * All rights reserved. 6999f82afSJohn Marino * 7999f82afSJohn Marino * This code is derived from software contributed to The NetBSD Foundation 8999f82afSJohn Marino * by Christos Zoulas. 9999f82afSJohn Marino * 10999f82afSJohn Marino * Redistribution and use in source and binary forms, with or without 11999f82afSJohn Marino * modification, are permitted provided that the following conditions 12999f82afSJohn Marino * are met: 13999f82afSJohn Marino * 1. Redistributions of source code must retain the above copyright 14999f82afSJohn Marino * notice, this list of conditions and the following disclaimer. 15999f82afSJohn Marino * 2. Redistributions in binary form must reproduce the above copyright 16999f82afSJohn Marino * notice, this list of conditions and the following disclaimer in the 17999f82afSJohn Marino * documentation and/or other materials provided with the distribution. 18999f82afSJohn Marino * 19999f82afSJohn Marino * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 20999f82afSJohn Marino * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 21999f82afSJohn Marino * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 22999f82afSJohn Marino * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 23999f82afSJohn Marino * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 24999f82afSJohn Marino * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 25999f82afSJohn Marino * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26999f82afSJohn Marino * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 27999f82afSJohn Marino * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28999f82afSJohn Marino * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29999f82afSJohn Marino * POSSIBILITY OF SUCH DAMAGE. 30999f82afSJohn Marino */ 31999f82afSJohn Marino #ifndef _SYMTAB_H_ 32999f82afSJohn Marino #define _SYMTAB_H_ 33999f82afSJohn Marino 34*f9bf14a0Szrj #if 1 35*f9bf14a0Szrj #define symtab_create __ei_symtab_create 36*f9bf14a0Szrj #define symtab_destroy __ei_symtab_destroy 37*f9bf14a0Szrj #define symtab_find __ei_symtab_find 38*f9bf14a0Szrj #endif 39*f9bf14a0Szrj 40999f82afSJohn Marino __BEGIN_DECLS 41999f82afSJohn Marino typedef struct symtab symtab_t; 42999f82afSJohn Marino 43999f82afSJohn Marino void symtab_destroy(symtab_t *); 44999f82afSJohn Marino symtab_t * symtab_create(int, int, int); 45999f82afSJohn Marino int symtab_find(const symtab_t *, const void *, Dl_info *); 46999f82afSJohn Marino __END_DECLS 47999f82afSJohn Marino 48999f82afSJohn Marino #endif /* _SYMTAB_H_ */ 49