summaryrefslogtreecommitdiff
path: root/src/analysis/db/snapshot.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-10-12 16:21:03 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-10-12 16:25:05 (GMT)
commit986125d4c2d8b049017b6d0770f16b9058076165 (patch)
treec89e6b7967a731e68d72f6d5a2150b0347db4ef3 /src/analysis/db/snapshot.h
parent96afc0325e1c85bf1a76d63c6441cf8f044708fe (diff)
Defined a new type dedicated to snapshot identifiers.
Diffstat (limited to 'src/analysis/db/snapshot.h')
-rw-r--r--src/analysis/db/snapshot.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/analysis/db/snapshot.h b/src/analysis/db/snapshot.h
index 452debd..f568ba3 100644
--- a/src/analysis/db/snapshot.h
+++ b/src/analysis/db/snapshot.h
@@ -34,6 +34,7 @@
#include "protocol.h"
+#include "misc/snapshot.h"
@@ -68,10 +69,10 @@ bool g_db_snapshot_fill(GDbSnapshot *, struct archive *);
DBError g_db_snapshot_save(const GDbSnapshot *, xmlDocPtr, xmlXPathContextPtr, struct archive *);
/* Fournit l'identifiant de l'instanné courant. */
-const char *g_db_snapshot_get_current_id(const GDbSnapshot *);
+bool g_db_snapshot_get_current_id(const GDbSnapshot *, snapshot_id_t *);
/* Fournit la base de données correspondant à instanné donné. */
-sqlite3 *g_db_snapshot_get_database(const GDbSnapshot *, const char *);
+sqlite3 *g_db_snapshot_get_database(const GDbSnapshot *, const snapshot_id_t *);