xref: /titanic_52/usr/src/lib/libdwarf/common/dwarf_elf_access.h (revision 7fd791373689a6af05e27efec3b1ab556e02aa23)
1 #ifndef _DWARF_ELF_PORT_H
2 #define _DWARF_ELF_PORT_H
3 /*
4 
5   Copyright (C) 2008-2010 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   Contact information:  Silicon Graphics, Inc., 1500 Crittenden Lane,
29   Mountain View, CA 94043, or:
30 
31   http://www.sgi.com
32 
33   For further information regarding this notice, see:
34 
35   http://oss.sgi.com/projects/GenInfo/NoticeExplan
36 
37 */
38 
39 
40 
41 /* ELF (usually libelf) object access for the generic object file interface */
42 
43 int
44 dwarf_elf_object_access_init(dwarf_elf_handle  elf ,
45                     int libdwarf_owns_elf,
46                     Dwarf_Obj_Access_Interface**  ret_obj,
47                     int *err );
48 
49 void
50 dwarf_elf_object_access_finish(Dwarf_Obj_Access_Interface*  obj );
51 
52 /* End ELF object access for the generic object file interface */
53 
54 
55 #endif
56