summaryrefslogtreecommitdiff
path: root/src/format/exe_format-int.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/format/exe_format-int.h')
-rw-r--r--src/format/exe_format-int.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/format/exe_format-int.h b/src/format/exe_format-int.h
index 3bba821..bb96ea5 100644
--- a/src/format/exe_format-int.h
+++ b/src/format/exe_format-int.h
@@ -51,6 +51,9 @@ struct _bin_part
/* Fournit l'adresse mémoire du point d'entrée du programme. */
typedef uint64_t (* get_entry_point_fc) (const exe_format *);
+/* Indique le type d'architecture visée par le format. */
+typedef FormatTargetMachine (* get_target_machine_fc) (const exe_format *);
+
/* Fournit les références aux zones de code à analyser. */
typedef bin_part ** (* get_def_parts_fc) (const exe_format *, size_t *);
@@ -77,6 +80,7 @@ struct _exe_format
off_t length; /* Taille de ce contenu */
get_entry_point_fc get_entry_point; /* Obtention du point d'entrée */
+ get_target_machine_fc get_target_machine; /* Architecture ciblée */
get_def_parts_fc get_def_parts; /* Liste des parties de code */
find_section_fc find_section; /* Recherche d'une section */
get_symbols_fc get_symbols; /* Liste des symboles présents */