summaryrefslogtreecommitdiff
path: root/src/format/known.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/format/known.h')
-rw-r--r--src/format/known.h30
1 files changed, 7 insertions, 23 deletions
diff --git a/src/format/known.h b/src/format/known.h
index dcc8669..3da433a 100644
--- a/src/format/known.h
+++ b/src/format/known.h
@@ -25,36 +25,16 @@
#define _FORMAT_KNOWN_H
-#include <glib-object.h>
-#include <stdbool.h>
-
-
#include "../analysis/content.h"
-#include "../glibext/delayed.h"
-#include "../glibext/notifier.h"
-
-
+#include "../glibext/helpers.h"
-#define G_TYPE_KNOWN_FORMAT g_known_format_get_type()
-#define G_KNOWN_FORMAT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), G_TYPE_KNOWN_FORMAT, GKnownFormat))
-#define G_IS_KNOWN_FORMAT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), G_TYPE_KNOWN_FORMAT))
-#define G_KNOWN_FORMAT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), G_TYPE_KNOWN_FORMAT, GKnownFormatClass))
-#define G_IS_KNOWN_FORMAT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), G_TYPE_KNOWN_FORMAT))
-#define G_KNOWN_FORMAT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), G_TYPE_KNOWN_FORMAT, GKnownFormatClass))
-/* Format binaire générique (instance) */
-typedef struct _GKnownFormat GKnownFormat;
+#define G_TYPE_KNOWN_FORMAT (g_known_format_get_type())
-/* Format binaire générique (classe) */
-typedef struct _GKnownFormatClass GKnownFormatClass;
+DECLARE_GTYPE(GKnownFormat, g_known_format, G, KNOWN_FORMAT);
-/* Indique le type défini pour un format binaire générique. */
-GType g_known_format_get_type(void);
-
-/* Définit le contenu binaire à analyser. */
-void g_known_format_set_content(GKnownFormat *, GBinContent *);
/* Fournit une référence vers le contenu binaire analysé. */
GBinContent *g_known_format_get_content(const GKnownFormat *);
@@ -65,12 +45,16 @@ char *g_known_format_get_key(const GKnownFormat *);
/* Fournit une description humaine du format. */
char *g_known_format_get_description(const GKnownFormat *);
+#if 0
+
/* Assure l'interprétation d'un format en différé. */
bool g_known_format_analyze(GKnownFormat *, wgroup_id_t, GtkStatusStack *);
/* Réalise un traitement post-désassemblage. */
void g_known_format_complete_analysis(GKnownFormat *, wgroup_id_t, GtkStatusStack *);
+#endif
+
#endif /* _FORMAT_KNOWN_H */