summaryrefslogtreecommitdiff
path: root/src/analysis/content-int.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2016-07-28 21:55:02 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2016-07-28 21:55:02 (GMT)
commit0c92911504f7d267c913fc8d2069cb87139b390b (patch)
tree236cf29352580a48c33ef54778d0a18c77608664 /src/analysis/content-int.h
parentb509af52114501aff3ef81c49c431570f31a21d3 (diff)
Centralized the checksum computing of binary contents.
Diffstat (limited to 'src/analysis/content-int.h')
-rw-r--r--src/analysis/content-int.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/analysis/content-int.h b/src/analysis/content-int.h
index d9f9ef9..24cea81 100644
--- a/src/analysis/content-int.h
+++ b/src/analysis/content-int.h
@@ -35,8 +35,8 @@ typedef const char * (* describe_content_fc) (const GBinContent *, bool);
/* Ecrit une sauvegarde de contenu binaire dans un fichier XML. */
typedef bool (* save_content_fc) (const GBinContent *, xmlDocPtr, xmlXPathContextPtr, const char *, const char *);
-/* Fournit une empreinte unique (SHA256) pour les données. */
-typedef const gchar * (* get_checksum_fc) (GBinContent *);
+/* Calcule une empreinte unique (SHA256) pour les données. */
+typedef void (* compute_checksum_fc) (GBinContent *, GChecksum *);
/* Détermine le nombre d'octets lisibles. */
typedef phys_t (* compute_size_fc) (const GBinContent *);
@@ -78,7 +78,7 @@ struct _GBinContentIface
save_content_fc save; /* Sauvegarde du contenu */
- get_checksum_fc get_checksum; /* Calcul de l'empreinte */
+ compute_checksum_fc compute_checksum; /* Calcul de l'empreinte */
compute_size_fc compute_size; /* Calcul de la taille totale */