107dc1947SRichard Lowe #ifndef _DWARF_ELF_PORT_H
207dc1947SRichard Lowe #define _DWARF_ELF_PORT_H
307dc1947SRichard Lowe /*
407dc1947SRichard Lowe 
5*4d9fdb46SRobert Mustacchi   Copyright (C) 2008-2011 David Anderson. All rights reserved.
607dc1947SRichard Lowe   Portions Copyright 2008-2010 Arxan Technologies, Inc. All rights reserved.
707dc1947SRichard Lowe 
807dc1947SRichard Lowe   This program is free software; you can redistribute it and/or modify it
907dc1947SRichard Lowe   under the terms of version 2.1 of the GNU Lesser General Public License
1007dc1947SRichard Lowe   as published by the Free Software Foundation.
1107dc1947SRichard Lowe 
1207dc1947SRichard Lowe   This program is distributed in the hope that it would be useful, but
1307dc1947SRichard Lowe   WITHOUT ANY WARRANTY; without even the implied warranty of
1407dc1947SRichard Lowe   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1507dc1947SRichard Lowe 
1607dc1947SRichard Lowe   Further, this software is distributed without any warranty that it is
1707dc1947SRichard Lowe   free of the rightful claim of any third person regarding infringement
1807dc1947SRichard Lowe   or the like.  Any license provided herein, whether implied or
1907dc1947SRichard Lowe   otherwise, applies only to this software file.  Patent licenses, if
2007dc1947SRichard Lowe   any, provided herein do not apply to combinations of this program with
2107dc1947SRichard Lowe   other software, or any other product whatsoever.
2207dc1947SRichard Lowe 
2307dc1947SRichard Lowe   You should have received a copy of the GNU Lesser General Public
2407dc1947SRichard Lowe   License along with this program; if not, write the Free Software
2507dc1947SRichard Lowe   Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston MA 02110-1301,
2607dc1947SRichard Lowe   USA.
2707dc1947SRichard Lowe 
2807dc1947SRichard Lowe */
2907dc1947SRichard Lowe 
3007dc1947SRichard Lowe 
3107dc1947SRichard Lowe 
3207dc1947SRichard Lowe /* ELF (usually libelf) object access for the generic object file interface */
3307dc1947SRichard Lowe 
3407dc1947SRichard Lowe int
3507dc1947SRichard Lowe dwarf_elf_object_access_init(dwarf_elf_handle  elf ,
36*4d9fdb46SRobert Mustacchi     int libdwarf_owns_elf,
37*4d9fdb46SRobert Mustacchi     Dwarf_Obj_Access_Interface**  ret_obj,
38*4d9fdb46SRobert Mustacchi     int *err );
3907dc1947SRichard Lowe 
4007dc1947SRichard Lowe void
4107dc1947SRichard Lowe dwarf_elf_object_access_finish(Dwarf_Obj_Access_Interface*  obj );
42*4d9fdb46SRobert Mustacchi 
4307dc1947SRichard Lowe /* End ELF object access for the generic object file interface */
4407dc1947SRichard Lowe 
4507dc1947SRichard Lowe 
4607dc1947SRichard Lowe #endif
47