diff options
Diffstat (limited to 'src/format/format-int.h')
-rw-r--r-- | src/format/format-int.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/format/format-int.h b/src/format/format-int.h index d50b053..0ab0e85 100644 --- a/src/format/format-int.h +++ b/src/format/format-int.h @@ -47,6 +47,17 @@ typedef void (* format_decompile_fc) (const GBinFormat *, void/*GCodeBuffer*/ *, #define EXTRA_POINT_BLOCK 100 +/* Description d'une erreur */ +typedef struct _fmt_error +{ + BinaryFormatError type; /* Type d'erreur */ + + vmpa2t addr; /* Localisation du problème */ + char *desc; /* Description du soucis */ + +} fmt_error; + + /* Format binaire générique (instance) */ struct _GBinFormat { @@ -74,6 +85,13 @@ struct _GBinFormat size_t def_source; /* Fichier source principal */ format_decompile_fc decompile; /* Décompilation d'un fichier */ + fmt_error *errors; /* Liste d'erreurs rencontrées */ + size_t error_count; /* Taille de cette liste */ + GMutex error_mutex; /* Verrou pour l'accès */ +#ifndef NDEBUG + gint error_locked; /* Statut d'accès à la liste */ +#endif + }; /* Format binaire générique (classe) */ |