summaryrefslogtreecommitdiff
path: root/src/format/executable-int.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2010-01-02 01:48:30 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2010-01-02 01:48:30 (GMT)
commit2d95ce74200c8cb7c328535235a8c8e74686794e (patch)
tree6e006e9b43b022a40ba53c58ed1f39be5327f880 /src/format/executable-int.h
parent7468875c1022337efbff78069d715672ae083150 (diff)
Provided ways to load, save and edit some binary parts selection.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@141 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/format/executable-int.h')
-rw-r--r--src/format/executable-int.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/format/executable-int.h b/src/format/executable-int.h
index e4b18a4..224e193 100644
--- a/src/format/executable-int.h
+++ b/src/format/executable-int.h
@@ -41,6 +41,9 @@ typedef vmpa_t (* get_entry_point_fc) (const GExeFormat *);
/* Fournit les références aux zones de code à analyser. */
typedef GBinPart ** (* get_parts_fc) (const GExeFormat *, size_t *);
+/* Fournit la position correspondant à une adresse virtuelle. */
+typedef bool (* translate_addr_fc) (const GExeFormat *, vmpa_t, off_t *);
+
/* Fournit l'adresse virtuelle correspondant à une position. */
typedef bool (* translate_off_fc) (const GExeFormat *, off_t, vmpa_t *);
@@ -56,7 +59,8 @@ struct _GExeFormat
get_entry_point_fc get_entry_point; /* Obtention du point d'entrée */
get_parts_fc get_parts; /* Liste des parties binaires */
- translate_off_fc translate; /* Correspondance pos -> addr */
+ translate_addr_fc translate_addr; /* Correspondance addr -> pos */
+ translate_off_fc translate_off; /* Correspondance pos -> addr */
};