diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2009-12-13 11:54:32 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2009-12-13 11:54:32 (GMT) |
commit | 7468875c1022337efbff78069d715672ae083150 (patch) | |
tree | 0a8e5ce9cce113506a601539c9aa0a1b4ae48680 /src/format/part.h | |
parent | c6409e2c6a390a7cca40da8572c93a5268e90a27 (diff) |
Loaded and saved binary parts.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@140 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
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 *); |