diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2015-09-19 22:28:42 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2015-09-19 22:28:42 (GMT) |
commit | 0e3059731d9687027c913135b3b856596c49a689 (patch) | |
tree | d3c3754f95c90ae50168817e6248afee6873fbf3 /src/analysis/content-int.h | |
parent | 18648e4e8763a3bc005d6fae51eae3d1528d7d29 (diff) |
Extended the prototype for matching formats in order to get it suitable for plugins.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@577 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/analysis/content-int.h')
-rw-r--r-- | src/analysis/content-int.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/analysis/content-int.h b/src/analysis/content-int.h index 7734916..c5b1659 100644 --- a/src/analysis/content-int.h +++ b/src/analysis/content-int.h @@ -29,6 +29,12 @@ +/* Fournit le nom associé au contenu binaire. */ +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 *); + /* Fournit une empreinte unique (SHA256) pour les données. */ typedef const gchar * (* get_checksum_fc) (GBinContent *); @@ -62,6 +68,10 @@ struct _GBinContentIface { GTypeInterface base_iface; /* A laisser en premier */ + describe_content_fc describe; /* Fournit une description */ + + save_content_fc save; /* Sauvegarde du contenu */ + get_checksum_fc get_checksum; /* Calcul de l'empreinte */ compute_size_fc compute_size; /* Calcul de la taille totale */ |