summaryrefslogtreecommitdiff
path: root/src/glibext/gbinportion.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2014-10-11 20:50:03 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2014-10-11 20:50:03 (GMT)
commitffc49de3b424d3daf08b5fdeefd4a3ede6defd02 (patch)
treecf1a96860e922715bcab55126f8095b7f562d2a1 /src/glibext/gbinportion.h
parenta5e162d47a574f334b172dfee3128a40e8d52fb3 (diff)
Improved the disassembling process using memory ranges.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@411 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/glibext/gbinportion.h')
-rw-r--r--src/glibext/gbinportion.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/glibext/gbinportion.h b/src/glibext/gbinportion.h
index fb32496..ac6b4fd 100644
--- a/src/glibext/gbinportion.h
+++ b/src/glibext/gbinportion.h
@@ -72,6 +72,10 @@ typedef enum _PortionAccessRights
} PortionAccessRights;
+/* Fonction appelée à chaque visite de portion.*/
+typedef bool (* visit_portion_fc) (GBinPortion *, void *);
+
+
/* Indique le type défini par la GLib pour les blocs de données. */
GType g_binary_portion_get_type(void);
@@ -85,7 +89,10 @@ void g_binary_portion_set_desc(GBinPortion *, const char *);
const char *g_binary_portion_get_desc(const GBinPortion *);
/* Définit les valeurs utiles d'une partie de code. */
-void g_binary_portion_set_values(GBinPortion *, const vmpa2t *, off_t);
+void g_binary_portion_set_values(GBinPortion *, const vmpa2t *, phys_t);
+
+/* Fournit l'emplacement d'une partie de code binaire. */
+const mrange_t *g_binary_portion_get_range(const GBinPortion *);
/* Définit les droits associés à une partie de code. */
void g_binary_portion_set_rights(GBinPortion *, PortionAccessRights);
@@ -96,6 +103,9 @@ PortionAccessRights g_binary_portion_get_rights(const GBinPortion *);
/* Procède à l'inclusion d'une portion dans une autre. */
void g_binary_portion_include(GBinPortion *, GBinPortion *);
+/* Parcours un ensemble de portions binaires. */
+bool g_binary_portion_visit(GBinPortion *, visit_portion_fc, void *);
+
/* Recherche la portion présente à un point donné. */
GBinPortion *g_binary_portion_find_at_pos(GBinPortion *, gint, GdkRectangle *);