summaryrefslogtreecommitdiff
path: root/src/format/format-int.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-04-21 22:00:00 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-04-21 22:00:00 (GMT)
commit8eb95d316f7b6fbad0ff798abfe7f70f89e812d2 (patch)
tree4f310c7ffdb94d48fff236e63c7e6f0ed9f1dee1 /src/format/format-int.h
parent315146a49b5570294ca20beca720c4e3f74a86bd (diff)
Improved the way file formats are detected and loaded.
Diffstat (limited to 'src/format/format-int.h')
-rw-r--r--src/format/format-int.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/format/format-int.h b/src/format/format-int.h
index 78da2f6..37dac0f 100644
--- a/src/format/format-int.h
+++ b/src/format/format-int.h
@@ -37,6 +37,12 @@
/* ------------------------ TRAITEMENT INDIVIDUEL DE FORMATS ------------------------ */
+/* Indique la désignation interne du format. */
+typedef const char * (* format_get_name_fc) (const GBinFormat *);
+
+/*Assure l'interprétation d'un format en différé. */
+typedef bool (* format_analyze_fc) (GBinFormat *, wgroup_id_t, GtkStatusStack *);
+
/* Indique le boutisme employé par le format binaire analysé. */
typedef SourceEndian (* format_get_endian_fc) (const GBinFormat *);
@@ -109,6 +115,10 @@ struct _GBinFormatClass
{
GObjectClass parent; /* A laisser en premier */
+ format_get_name_fc get_name; /* Désignation interne */
+
+ format_analyze_fc analyze; /* Interprétation du format */
+
format_get_endian_fc get_endian; /* Boutisme employé */
format_complete_analysis_fc complete; /* Terminaison d'analyse */