summaryrefslogtreecommitdiff
path: root/src/analysis/db/misc/timestamp.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/analysis/db/misc/timestamp.h
parent7d153f7d3a32a66d3eaf5199d396debbe3b675f5 (diff)
Defined abstract packed buffers to transfert data.
Diffstat (limited to 'src/analysis/db/misc/timestamp.h')
-rw-r--r--src/analysis/db/misc/timestamp.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/analysis/db/misc/timestamp.h b/src/analysis/db/misc/timestamp.h
index 5d4f2f1..14a1fb5 100644
--- a/src/analysis/db/misc/timestamp.h
+++ b/src/analysis/db/misc/timestamp.h
@@ -29,6 +29,7 @@
#include <stdint.h>
+#include "../../../common/packed.h"
#include "../../../common/sqlite.h"
@@ -52,10 +53,10 @@ bool timestamp_is_younger(timestamp_t, timestamp_t);
int cmp_timestamp(const timestamp_t *, const timestamp_t *);
/* Importe la définition d'un horodatage. */
-bool recv_timestamp(timestamp_t *, int, int);
+bool unpack_timestamp(timestamp_t *, packed_buffer *);
/* Exporte la définition d'un horodatage. */
-bool send_timestamp(const timestamp_t *, int, int);
+bool pack_timestamp(const timestamp_t *, packed_buffer *);