summaryrefslogtreecommitdiff
path: root/src/format/executable.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/format/executable.c')
-rw-r--r--src/format/executable.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/format/executable.c b/src/format/executable.c
index 2d7c185..13482c0 100644
--- a/src/format/executable.c
+++ b/src/format/executable.c
@@ -126,6 +126,35 @@ vmpa_t g_exe_format_get_entry_point(const GExeFormat *format)
/******************************************************************************
* *
+* Paramètres : format = description de l'exécutable à consulter. *
+* *
+* Description : Décrit les différentes portions qui composent le binaire. *
+* *
+* Retour : Défintions de zones. *
+* *
+* Remarques : - *
+* *
+******************************************************************************/
+
+GBinPortion *g_exe_format_get_portions(GExeFormat *format)
+{
+ if (format->portions == NULL)
+ {
+ format->portions = g_binary_portion_new(BPC_RAW);
+ g_binary_portion_set_values(format->portions, 0, G_BIN_FORMAT(format)->length, 0);
+
+ if (format->refine_portions != NULL)
+ format->refine_portions(format, format->portions);
+
+ }
+
+ return format->portions;
+
+}
+
+
+/******************************************************************************
+* *
* Paramètres : format = informations chargées à consulter. *
* count = quantité de zones listées. [OUT] *
* *