xref: /illumos-gate/usr/src/lib/libdwarf/common/dwarf_elf_access.h (revision 1a2d662a91cee3bf82f41cd47c7ae6f3825d9db2)
1 #ifndef _DWARF_ELF_PORT_H
2 #define _DWARF_ELF_PORT_H
3 /*
4 
5   Copyright (C) 2008-2011 David Anderson. All rights reserved.
6   Portions Copyright 2008-2010 Arxan Technologies, Inc. All rights reserved.
7 
8   This program is free software; you can redistribute it and/or modify it
9   under the terms of version 2.1 of the GNU Lesser General Public License
10   as published by the Free Software Foundation.
11 
12   This program is distributed in the hope that it would be useful, but
13   WITHOUT ANY WARRANTY; without even the implied warranty of
14   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15 
16   Further, this software is distributed without any warranty that it is
17   free of the rightful claim of any third person regarding infringement
18   or the like.  Any license provided herein, whether implied or
19   otherwise, applies only to this software file.  Patent licenses, if
20   any, provided herein do not apply to combinations of this program with
21   other software, or any other product whatsoever.
22 
23   You should have received a copy of the GNU Lesser General Public
24   License along with this program; if not, write the Free Software
25   Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston MA 02110-1301,
26   USA.
27 
28 */
29 
30 
31 
32 /* ELF (usually libelf) object access for the generic object file interface */
33 
34 int
35 dwarf_elf_object_access_init(dwarf_elf_handle  elf ,
36     int libdwarf_owns_elf,
37     Dwarf_Obj_Access_Interface**  ret_obj,
38     int *err );
39 
40 void
41 dwarf_elf_object_access_finish(Dwarf_Obj_Access_Interface*  obj );
42 
43 /* End ELF object access for the generic object file interface */
44 
45 
46 #endif
47