diff options
Diffstat (limited to 'src/format/exe_format.h')
-rw-r--r-- | src/format/exe_format.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/format/exe_format.h b/src/format/exe_format.h index 8e4932f..4fedf13 100644 --- a/src/format/exe_format.h +++ b/src/format/exe_format.h @@ -56,10 +56,34 @@ void delete_bin_part(bin_part *); +/* FIXME !!!!!!!!!!!! */ + /* Support générique d'un format d'exécutable */ typedef struct _exe_format exe_format; + +/* ------------------------ DETECTION DE FORMATS EXECUTABLES ------------------------ */ + + +/* Indication à propos du support d'un format */ +typedef bool (* exe_match_fc) (const uint8_t *, off_t); + +/* Méthode de chargement d'un format */ +typedef exe_format * (* exe_load_fc) (const uint8_t *, off_t); + + +/* Enregistre la disponibilité d'un nouveau format exécutable. */ +void register_exe_format(const char *, exe_match_fc, exe_load_fc); + +/* Charge si possible un nouvel exécutable binaire. */ +exe_format *load_new_exe_format(const uint8_t *, off_t); + + + + + + /* Types de symbole */ typedef enum _SymbolType { |