diff options
Diffstat (limited to 'src/format/executable-int.h')
-rw-r--r-- | src/format/executable-int.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/format/executable-int.h b/src/format/executable-int.h index 59a513e..bb46248 100644 --- a/src/format/executable-int.h +++ b/src/format/executable-int.h @@ -46,6 +46,13 @@ typedef bool (* translate_off_fc) (const GExeFormat *, off_t, vmpa_t *); +/* Fournit l'emplacement correspondant à une position physique. */ +typedef bool (* translate_phys_fc) (const GExeFormat *, phys_t, vmpa2t *); + +/* Fournit l'emplacement correspondant à une adresse virtuelle. */ +typedef bool (* translate_virt_fc) (const GExeFormat *, virt_t, vmpa2t *); + + /* Format d'exécutable générique (instance) */ struct _GExeFormat @@ -67,6 +74,9 @@ struct _GExeFormatClass { GBinFormatClass parent; /* A laisser en premier */ + translate_phys_fc translate_phys; /* Correspondance phys -> vmpa */ + translate_virt_fc translate_virt; /* Correspondance virt -> vmpa */ + }; |