diff options
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); |