summaryrefslogtreecommitdiff
path: root/src/format/known-int.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2024-11-15 10:01:42 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2024-11-15 10:01:42 (GMT)
commit671f61ec87f5e8d762ea890aabbc62c777e1c4f9 (patch)
tree1517f5fc5d00c8fd04872b35571556b021866f14 /src/format/known-int.h
parent3e21278480a25552401644cd0dc168e3588508dd (diff)
Restore a skeleton of support for file formats.
Diffstat (limited to 'src/format/known-int.h')
-rw-r--r--src/format/known-int.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/format/known-int.h b/src/format/known-int.h
index 3328a96..bac0c5c 100644
--- a/src/format/known-int.h
+++ b/src/format/known-int.h
@@ -2,7 +2,7 @@
/* Chrysalide - Outil d'analyse de fichiers binaires
* known-int.h - prototypes utiles aux formats binaires reconnus
*
- * Copyright (C) 2019 Cyrille Bagard
+ * Copyright (C) 2019-2024 Cyrille Bagard
*
* This file is part of Chrysalide.
*
@@ -26,7 +26,7 @@
#include "known.h"
-#include "../analysis/storage/storage.h"
+//#include "../analysis/storage/storage.h"
@@ -36,6 +36,7 @@ typedef char * (* known_get_key_fc) (const GKnownFormat *);
/* Fournit une description humaine du format. */
typedef char * (* known_get_desc_fc) (const GKnownFormat *);
+#if 0
/*Assure l'interprétation d'un format en différé. */
typedef bool (* known_analyze_fc) (GKnownFormat *, wgroup_id_t, GtkStatusStack *);
@@ -47,6 +48,7 @@ typedef bool (* load_known_fc) (GKnownFormat *, GObjectStorage *, packed_buffer_
/* Sauvegarde un format dans une mémoire tampon. */
typedef bool (* store_known_fc) (GKnownFormat *, GObjectStorage *, packed_buffer_t *);
+#endif
/* Format binaire générique (instance) */
@@ -66,14 +68,20 @@ struct _GKnownFormatClass
known_get_key_fc get_key; /* Désignation interne */
known_get_desc_fc get_desc; /* Désignation humaine */
+#if 0
known_analyze_fc analyze; /* Interprétation du format */
known_complete_analysis_fc complete; /* Terminaison d'analyse */
load_known_fc load; /* Chargement depuis un tampon */
store_known_fc store; /* Conservation dans un tampon */
+#endif
};
+/* Met en place un nouveau contenu binaire à analyser. */
+bool g_known_format_create(GKnownFormat *, GBinContent *);
+
+
#endif /* _FORMAT_KNOWN_INT_H */