Debian Codegraph @

src/bin/dwarfdump/dd_addrmap.h

raw
1 /*
2 Copyright 2010 David Anderson. All rights reserved.
3
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of version 2 of the GNU General
6 Public License as published by the Free Software Foundation.
7
8 This program is distributed in the hope that it would be
9 useful, but WITHOUT ANY WARRANTY; without even the implied
10 warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE.
12
13 Further, this software is distributed without any warranty
14 that it is free of the rightful claim of any third person
15 regarding infringement or the like. Any license provided
16 herein, whether implied or otherwise, applies only to this
17 software file. Patent licenses, if any, provided herein
18 do not apply to combinations of this program with other
19 software, or any other product whatsoever.
20
21 You should have received a copy of the GNU General Public
22 License along with this program; if not, write the Free
23 Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
24 Boston MA 02110-1301, USA.
25
26 */
27
28 #ifndef ADDRMAP_H
29 #define ADDRMAP_H
30
31 #ifdef __cplusplus
32 extern "C" {
33 #endif /* __cplusplus */
34
35 struct Addr_Map_Entry {
36 Dwarf_Unsigned mp_key;
37 char * mp_name;
38 };
39
40 struct Addr_Map_Entry * addr_map_insert(Dwarf_Unsigned addr,
41 char *name, void **map);
42 struct Addr_Map_Entry * addr_map_find(Dwarf_Unsigned addr,
43 void **map);
44 void addr_map_destroy(void *map);
45
46 #ifdef __cplusplus
47 }
48 #endif /* __cplusplus */
49
50 #endif /* ADDRMAP_H */