summaryrefslogtreecommitdiff
path: root/src/format/program-int.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2024-11-23 15:59:19 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2024-11-23 15:59:19 (GMT)
commit411f03130cf45194689bc344f19a3b77c33a31ae (patch)
treef047b62015eb37e30629398f9adcb977a5a6c6f6 /src/format/program-int.h
parent80d779749adf228078b61f268bf952ba91a277f0 (diff)
Restore more features for formats.
Diffstat (limited to 'src/format/program-int.h')
-rw-r--r--src/format/program-int.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/format/program-int.h b/src/format/program-int.h
index 958c6ff..1549a0a 100644
--- a/src/format/program-int.h
+++ b/src/format/program-int.h
@@ -35,6 +35,9 @@
/* Indique le boutisme employé par le format binaire analysé. */
typedef SourceEndian (* program_get_endian_fc) (const GProgramFormat *);
+/* Fournit l'emplacement d'une section donnée. */
+typedef bool (* get_range_by_name_fc) (const GProgramFormat *, const char *, mrange_t *);
+
/* Format de programme générique (instance) */
struct _GProgramFormat
@@ -49,10 +52,13 @@ struct _GProgramFormatClass
GKnownFormatClass parent; /* A laisser en premier */
program_get_endian_fc get_endian; /* Boutisme employé */
+ get_range_by_name_fc get_range_by_name; /* Emplacement de sections */
};
+/* Met en place un nouveau contenu binaire à analyser. */
+bool g_program_format_create(GProgramFormat *, GBinContent *);