summaryrefslogtreecommitdiff
path: root/src/format/format-int.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/format/format-int.h')
-rw-r--r--src/format/format-int.h35
1 files changed, 3 insertions, 32 deletions
diff --git a/src/format/format-int.h b/src/format/format-int.h
index 4ef9793..de29751 100644
--- a/src/format/format-int.h
+++ b/src/format/format-int.h
@@ -28,6 +28,7 @@
#include "format.h"
+#include "known-int.h"
#include "preload.h"
#include "../glibext/objhole.h"
#include "../gtkext/gtkstatusstack.h"
@@ -38,22 +39,9 @@
/* ------------------------ TRAITEMENT INDIVIDUEL DE FORMATS ------------------------ */
-/* Indique la désignation interne du format. */
-typedef const char * (* format_get_name_fc) (const GBinFormat *);
-
-/* Fournit une description humaine du format. */
-typedef const char * (* format_get_desc_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 *);
-/* Réalise un traitement post-désassemblage. */
-typedef void (* format_complete_analysis_fc) (GBinFormat *, wgroup_id_t, GtkStatusStack *);
-
-
/* Rythme des allocations pour les entrées de code */
#define EXTRA_POINT_BLOCK 20
@@ -83,9 +71,7 @@ typedef struct _fmt_error
/* Format binaire générique (instance) */
struct _GBinFormat
{
- GObject parent; /* A laisser en premier */
-
- GBinContent *content; /* Contenu binaire à étudier */
+ GKnownFormat parent; /* A laisser en premier */
virt_t *start_points[DPL_COUNT]; /* Départ de désassemblage */
size_t pt_allocated[DPL_COUNT]; /* Taille d'inscription allouée*/
@@ -147,17 +133,10 @@ struct _GBinFormat
/* Format binaire générique (classe) */
struct _GBinFormatClass
{
- GObjectClass parent; /* A laisser en premier */
-
- format_get_name_fc get_name; /* Désignation interne */
- format_get_desc_fc get_desc; /* Désignation humaine */
-
- format_analyze_fc analyze; /* Interprétation du format */
+ GKnownFormatClass parent; /* A laisser en premier */
format_get_endian_fc get_endian; /* Boutisme employé */
- format_complete_analysis_fc complete; /* Terminaison d'analyse */
-
/* Signaux */
void (* symbol_added) (GBinFormat *, GBinSymbol *);
@@ -166,14 +145,6 @@ struct _GBinFormatClass
};
-/* Effectue les ultimes opérations de chargement d'un binaire. */
-bool g_binary_format_complete_loading(GBinFormat *, GtkStatusStack *);
-
-/* Définit le contenu binaire à analyser. */
-void g_binary_format_set_content(GBinFormat *, GBinContent *);
-
-
-
/* ------------------------------ DECODAGE DE SYMBOLES ------------------------------ */