diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2009-01-25 21:27:14 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2009-01-25 21:27:14 (GMT) |
commit | 21493170bb188ad9548820c830c3e8d7055e3f46 (patch) | |
tree | fdc4d03b0aaa5e7ed8a0b8b151926f654cece321 /src/format/exe_format.h | |
parent | 8f1e49332cd81760c98166be9df79a7136f5ca57 (diff) |
Supported the Java Class file format.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@46 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
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 { |