summaryrefslogtreecommitdiff
path: root/src/arch/vmpa.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2014-08-26 22:41:12 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2014-08-26 22:41:12 (GMT)
commit10b620c3f7d6a9e78aa1e9d6dabef466d0b9e3af (patch)
tree3324503e81bdbc83611aa52b4df83b51090d7104 /src/arch/vmpa.h
parent90a79bf4c2c21715e5ef9d8a370928d218c08784 (diff)
Looked for coordinates using the new addresses definitions.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@394 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/arch/vmpa.h')
-rw-r--r--src/arch/vmpa.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/arch/vmpa.h b/src/arch/vmpa.h
index d89c290..85ff6b4 100644
--- a/src/arch/vmpa.h
+++ b/src/arch/vmpa.h
@@ -74,6 +74,9 @@ int cmp_vmpa_by_phy(const vmpa2t *, const vmpa2t *);
/* Compare entre elles deux adresses virtuelles. */
int cmp_vmpa_by_virt(const vmpa2t *, const vmpa2t *);
+/* Compare deux localisations selon leurs parties définies. */
+int cmp_vmpa(const vmpa2t *, const vmpa2t *);
+
#define are_equal(a, b) \
(cmp_vmpa_by_phy(a, b) == 0 && cmp_vmpa_by_virt(a, b) == 0)
@@ -101,6 +104,12 @@ char *vmpa2_phys_to_string(const vmpa2t *, MemoryDataSize, char [VMPA_MAX_LEN],
/* Transforme une adresse virtuelle en chaîne de caractères. */
char *vmpa2_virt_to_string(const vmpa2t *, MemoryDataSize, char [VMPA_MAX_LEN], size_t *);
+/* Transforme une chaîne de caractères en position physique. */
+vmpa2t *string_to_vmpa_phy(const char *);
+
+/* Transforme une chaîne de caractères en adresse virtuelle. */
+vmpa2t *string_to_vmpa_virt(const char *);
+
#endif /* _ARCH_VMPA_H */