diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2017-07-08 10:14:12 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2017-07-08 10:14:12 (GMT) |
commit | 9b018cede5af54594c0a20847239233153b04ce1 (patch) | |
tree | 0492a9d831b682bab10dd113d7bb01e0b2700638 /src/format/executable-int.h | |
parent | 1194c79f2b7ccca24d9f89090722ed1157cbc5e1 (diff) |
Scrolled to the main address at startup without using a nested function.
Diffstat (limited to 'src/format/executable-int.h')
-rw-r--r-- | src/format/executable-int.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/format/executable-int.h b/src/format/executable-int.h index 8a5f197..64050e3 100644 --- a/src/format/executable-int.h +++ b/src/format/executable-int.h @@ -35,6 +35,9 @@ /* Indique le type d'architecture visée par le format. */ typedef const char * (* get_target_machine_fc) (const GExeFormat *); +/* Fournit l'adresse principale associée à un format. */ +typedef bool (* get_main_addr_fc) (GExeFormat *, vmpa2t *); + /* Etend la définition des portions au sein d'un binaire. */ typedef void (* refine_portions_fc) (GExeFormat *); @@ -68,6 +71,7 @@ struct _GExeFormatClass GBinFormatClass parent; /* A laisser en premier */ get_target_machine_fc get_machine; /* Architecture ciblée */ + get_main_addr_fc get_main_addr; /* Obtention d'adresse première*/ refine_portions_fc refine_portions; /* Décrit les portions binaires*/ translate_phys_fc translate_phys; /* Correspondance phys -> vmpa */ |