diff options
Diffstat (limited to 'src/format/part.h')
-rw-r--r-- | src/format/part.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/format/part.h b/src/format/part.h index ff18fc9..5c1c904 100644 --- a/src/format/part.h +++ b/src/format/part.h @@ -29,6 +29,7 @@ #include <sys/types.h> +#include "../common/xml.h" #include "../arch/archbase.h" @@ -54,6 +55,12 @@ GType g_binary_part_get_type(void); /* Crée une description de partie de code vierge. */ GBinPart *g_binary_part_new(void); +/* Crée une description de partie de code vierge à partir d'XML. */ +GBinPart *g_binary_part_load_from_xml(xmlNodePtr); + +/* Enregistre les informations d'une partie de code dans du XML. */ +bool g_binary_part_save_to_xml(const GBinPart *, xmlDocPtr, xmlNodePtr); + /* Attribue une description humaine à une partie de code. */ void g_binary_part_set_name(GBinPart *, const char *); @@ -63,6 +70,9 @@ const char *g_binary_part_get_name(const GBinPart *); /* Définit les valeurs utiles d'une partie de code. */ void g_binary_part_set_values(GBinPart *, off_t, off_t, vmpa_t); +/* Définit l'adresse virtuelle d'une partie de code. */ +void g_binary_part_set_address(GBinPart *, vmpa_t); + /* Fournit les valeurs utiles d'une partie de code. */ void g_binary_part_get_values(const GBinPart *, off_t *, off_t *, vmpa_t *); |