diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2019-10-13 23:24:57 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2019-10-13 23:24:57 (GMT) |
commit | f439711a77e0719e7f1dcf4b5c5511157986c918 (patch) | |
tree | cac0cf37be2676fcf2dc958f9d9fd2fadea20653 /src/analysis/db/misc/timestamp.h | |
parent | 986125d4c2d8b049017b6d0770f16b9058076165 (diff) |
Retrieved the current snapshot identifier from servers.
Diffstat (limited to 'src/analysis/db/misc/timestamp.h')
-rw-r--r-- | src/analysis/db/misc/timestamp.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/analysis/db/misc/timestamp.h b/src/analysis/db/misc/timestamp.h index 002f4d4..7f6290876 100644 --- a/src/analysis/db/misc/timestamp.h +++ b/src/analysis/db/misc/timestamp.h @@ -39,11 +39,17 @@ typedef uint64_t timestamp_t; /* Obtient un horodatage initialisé au moment même. */ -void init_timestamp(timestamp_t *); +bool init_timestamp(timestamp_t *); + +/* Obtient un horodatage initialisé avec une valeur donnée. */ +bool init_timestamp_from_value(timestamp_t *, uint64_t); /* Définit si un horodatage est plus récent qu'un autre ou non. */ bool timestamp_is_younger(timestamp_t, timestamp_t); +/* Effectue une copie d'horodatage. */ +void copy_timestamp(timestamp_t *, const timestamp_t *); + /* Effectue la comparaison entre deux horodatages. */ int cmp_timestamp(const timestamp_t *, const timestamp_t *); |