1*287472b3SEd Maste /* $NetBSD: symtab.h,v 1.1 2012/05/26 22:02:29 christos Exp $ */ 2*287472b3SEd Maste 3*287472b3SEd Maste /*- 4*287472b3SEd Maste * Copyright (c) 2012 The NetBSD Foundation, Inc. 5*287472b3SEd Maste * All rights reserved. 6*287472b3SEd Maste * 7*287472b3SEd Maste * This code is derived from software contributed to The NetBSD Foundation 8*287472b3SEd Maste * by Christos Zoulas. 9*287472b3SEd Maste * 10*287472b3SEd Maste * Redistribution and use in source and binary forms, with or without 11*287472b3SEd Maste * modification, are permitted provided that the following conditions 12*287472b3SEd Maste * are met: 13*287472b3SEd Maste * 1. Redistributions of source code must retain the above copyright 14*287472b3SEd Maste * notice, this list of conditions and the following disclaimer. 15*287472b3SEd Maste * 2. Redistributions in binary form must reproduce the above copyright 16*287472b3SEd Maste * notice, this list of conditions and the following disclaimer in the 17*287472b3SEd Maste * documentation and/or other materials provided with the distribution. 18*287472b3SEd Maste * 19*287472b3SEd Maste * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 20*287472b3SEd Maste * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 21*287472b3SEd Maste * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 22*287472b3SEd Maste * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 23*287472b3SEd Maste * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 24*287472b3SEd Maste * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 25*287472b3SEd Maste * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26*287472b3SEd Maste * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 27*287472b3SEd Maste * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28*287472b3SEd Maste * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29*287472b3SEd Maste * POSSIBILITY OF SUCH DAMAGE. 30*287472b3SEd Maste */ 31*287472b3SEd Maste #ifndef _SYMTAB_H_ 32*287472b3SEd Maste #define _SYMTAB_H_ 33*287472b3SEd Maste 34*287472b3SEd Maste __BEGIN_DECLS 35*287472b3SEd Maste typedef struct symtab symtab_t; 36*287472b3SEd Maste 37*287472b3SEd Maste void symtab_destroy(symtab_t *); 38*287472b3SEd Maste symtab_t * symtab_create(int, int, int); 39*287472b3SEd Maste int symtab_find(const symtab_t *, const void *, Dl_info *); 40*287472b3SEd Maste __END_DECLS 41*287472b3SEd Maste 42*287472b3SEd Maste #endif /* _SYMTAB_H_ */ 43