diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2013-01-14 22:08:00 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2013-01-14 22:08:00 (GMT) |
commit | 2ab78407e9f73b6508afc281400a7c3fc018217f (patch) | |
tree | 437054ef874e9536e15b9254a6a8c4c2396604ff /src/decomp/context.h | |
parent | 35a6cd881528b5f77ce09476eccb39d02d9cc634 (diff) |
Cleaned the context used for decompilations.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@324 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/decomp/context.h')
-rw-r--r-- | src/decomp/context.h | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/src/decomp/context.h b/src/decomp/context.h index bf584f4..2daff91 100644 --- a/src/decomp/context.h +++ b/src/decomp/context.h @@ -30,6 +30,19 @@ #include "instruction.h" #include "../arch/archbase.h" +#include "../format/executable.h" + + +/** + * Impossible d'inclure directement : + * - ../analysis/routine.h, qui inclut ../arch/instruction.h. + * - ../arch/instruction.h, qui inclut ce fichier. + * + * On redéclare donc manuellement les types manquants. + */ + +/* "../analysis/routine.h" : Représentation générique de routine (instance) */ +typedef struct _GBinRoutine GBinRoutine; @@ -55,11 +68,11 @@ GType g_dec_context_get_type(void); /* Met en place un nouveau contexte de décompilation. */ GDecContext *g_dec_context_new(void); -/* Indique l'adresse où la décompilation n'est plus souhaitée. */ -vmpa_t g_dec_context_get_max_address(const GDecContext *); +/* Définit les informations essentielles à la décompilation. */ +void g_dec_context_set_info(GDecContext *, GBinRoutine *, GExeFormat *); -/* Définit l'adresse où la décompilation n'est plus souhaitée. */ -void g_dec_context_set_max_address(GDecContext *, vmpa_t); +/* Fournit le format binaire associé au contexte. */ +GExeFormat *g_dec_context_get_format(const GDecContext *); /* Fournit le premier élément de la liste des instructions. */ GDecInstruction *g_dec_context_get_decomp_instrs(const GDecContext *tx); |