diff options
Diffstat (limited to 'src/format/format.h')
-rw-r--r-- | src/format/format.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/format/format.h b/src/format/format.h index ec78236..3c1bbea 100644 --- a/src/format/format.h +++ b/src/format/format.h @@ -105,4 +105,32 @@ const char * const *g_binary_format_get_source_files(const GBinFormat *, size_t +/* ------------------ CONSERVATION DES SOUCIS DURANT LE CHARGEMENT ------------------ */ + + +/* Types d'erreurs détectées */ +typedef enum _BinaryFormatError +{ + BFE_STRUCTURE = ((0 << 2) | (0 << 0)) /* Code non reconnu */ + +} BinaryFormatError; + + +/* Protège ou lève la protection de l'accès aux erreurs. */ +void g_binary_format_lock_unlock_errors(GBinFormat *, bool); + +#define g_binary_format_lock_errors(p) g_binary_format_lock_unlock_errors(p, true) +#define g_binary_format_unlock_errors(p) g_binary_format_lock_unlock_errors(p, false) + +/* Etend la liste des soucis détectés avec de nouvelles infos. */ +void g_binary_format_add_error(GBinFormat *, BinaryFormatError, const vmpa2t *, const char *); + +/* Indique le nombre d'erreurs relevées au niveau assembleur. */ +size_t g_binary_format_count_errors(GBinFormat *); + +/* Fournit les éléments concernant un soucis détecté. */ +bool g_binary_format_get_error(GBinFormat *, size_t, BinaryFormatError *, vmpa2t *, char **); + + + #endif /* _FORMAT_FORMAT_H */ |