summaryrefslogtreecommitdiff
path: root/src/arch/vmpa.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-02-28 18:58:57 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-02-28 18:58:57 (GMT)
commit027305c2447b05de2c576e3f5ee32ced400f439f (patch)
tree96f35ddcd87129f3c4ccec69e8fa0216654215c9 /src/arch/vmpa.h
parent7d153f7d3a32a66d3eaf5199d396debbe3b675f5 (diff)
Defined abstract packed buffers to transfert data.
Diffstat (limited to 'src/arch/vmpa.h')
-rw-r--r--src/arch/vmpa.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/arch/vmpa.h b/src/arch/vmpa.h
index 6305f79..3bfb40c 100644
--- a/src/arch/vmpa.h
+++ b/src/arch/vmpa.h
@@ -33,6 +33,7 @@
#include "archbase.h"
#include "../common/cpp.h"
+#include "../common/packed.h"
#include "../common/sqlite.h"
@@ -122,10 +123,10 @@ void align_vmpa(vmpa2t *, phys_t);
phys_t compute_vmpa_diff(const vmpa2t *, const vmpa2t *);
/* Lit la définition d'une adresse depuis un flux réseau. */
-bool recv_vmpa(vmpa2t *, int, int);
+bool unpack_vmpa(vmpa2t *, packed_buffer *);
/* Ecrit la définition d'une adresse dans un flux réseau. */
-bool send_vmpa(const vmpa2t *, int, int);
+bool pack_vmpa(const vmpa2t *, packed_buffer *);
/* Transforme une adresse physique en chaîne de caractères. */
char *vmpa2_phys_to_string(const vmpa2t *, MemoryDataSize, char [VMPA_MAX_LEN], size_t *);