summaryrefslogtreecommitdiff
path: root/src/analysis/content-int.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-09-26 22:40:22 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-09-26 22:40:22 (GMT)
commitd8f695596e4225de797504f8f797e1347491dd14 (patch)
tree6daaae9757c6207f9cf94c9fc39bf4f597af243d /src/analysis/content-int.h
parent3e97a551f9a7178717b8ad2810b312d8fbacd689 (diff)
Extended the API for binary contents.
Diffstat (limited to 'src/analysis/content-int.h')
-rw-r--r--src/analysis/content-int.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/analysis/content-int.h b/src/analysis/content-int.h
index 49d5269..f3d698e 100644
--- a/src/analysis/content-int.h
+++ b/src/analysis/content-int.h
@@ -44,6 +44,9 @@ typedef void (* compute_checksum_fc) (GBinContent *, GChecksum *);
/* Détermine le nombre d'octets lisibles. */
typedef phys_t (* compute_size_fc) (const GBinContent *);
+/* Détermine la position initiale d'un contenu. */
+typedef void (* compute_start_pos_fc) (const GBinContent *, vmpa2t *);
+
/* Détermine la position finale d'un contenu. */
typedef void (* compute_end_pos_fc) (const GBinContent *, vmpa2t *);
@@ -92,6 +95,7 @@ struct _GBinContentIface
compute_checksum_fc compute_checksum; /* Calcul de l'empreinte */
compute_size_fc compute_size; /* Calcul de la taille totale */
+ compute_start_pos_fc compute_start_pos; /* Calcul de position initiale */
compute_end_pos_fc compute_end_pos; /* Calcul de position finale */
seek_fc seek; /* Avancée de tête de lecture */