main.c: Remove unused variables
[memprof.git] / src / binfile.h
blob713b2250bf6c70438f9f44d2de9e061a49056419
1 /* MemProf -- memory profiler and leak detector
2 * Copyright 1999, 2000, 2001, Red Hat, Inc.
3 * Copyright 2002, Kristian Rietveld
5 * Sysprof -- Sampling, systemwide CPU profiler
6 * Copyright 2004, Red Hat, Inc.
7 * Copyright 2004, 2005, Soeren Sandmann
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 #ifndef BIN_FILE_H
25 #define BIN_FILE_H
27 #include <glib.h>
28 #include <sys/types.h>
30 typedef struct BinFile BinFile;
31 typedef struct BinSymbol BinSymbol;
33 /* Binary File */
35 BinFile * bin_file_new (const char *filename);
36 void bin_file_free (BinFile *bin_file);
37 const BinSymbol *bin_file_lookup_symbol (BinFile *bin_file,
38 gulong address);
39 gboolean bin_file_check_inode (BinFile *bin_file,
40 ino_t inode);
41 const char * bin_symbol_get_name (BinFile *bin_file,
42 const BinSymbol *symbol);
44 #endif