summaryrefslogtreecommitdiff
path: root/src/analysis/db/snapshot.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-10-27 22:33:11 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-10-27 23:10:41 (GMT)
commit609c184c3edb350a0da7fe29bf449a7189080c92 (patch)
tree4ddd6320ee58a6169cad377f9889a08298fbec47 /src/analysis/db/snapshot.h
parentd0547bc36bd6ccb84eff128fc6e4f2df034a705a (diff)
Implemented snapshot related management features.
Diffstat (limited to 'src/analysis/db/snapshot.h')
-rw-r--r--src/analysis/db/snapshot.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/analysis/db/snapshot.h b/src/analysis/db/snapshot.h
index 457e8c2..8737f8c 100644
--- a/src/analysis/db/snapshot.h
+++ b/src/analysis/db/snapshot.h
@@ -72,7 +72,7 @@ DBError g_db_snapshot_save(const GDbSnapshot *, xmlDocPtr, xmlXPathContextPtr, s
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 snapshot_id_t *);
+sqlite3 *g_db_snapshot_get_database(const GDbSnapshot *);
/* Collecte les descriptions de l'ensemble des instantanés. */
bool g_db_snapshot_pack_all(const GDbSnapshot *, packed_buffer *);
@@ -83,6 +83,15 @@ DBError g_db_snapshot_set_name(const GDbSnapshot *, packed_buffer *);
/* Actualise la description d'un instantané donné. */
DBError g_db_snapshot_set_desc(const GDbSnapshot *, packed_buffer *);
+/* Restaure un instantané de l'arborescence. */
+DBError g_db_snapshot_restore(GDbSnapshot *, packed_buffer *, bool *);
+
+/* Crée un nouvel instantanés dans l'arborescence. */
+DBError g_db_snapshot_create(GDbSnapshot *, sqlite3 *);
+
+/* Supprime un instantané dans l'arborescence. */
+DBError g_db_snapshot_remove(GDbSnapshot *, packed_buffer *, bool *);
+
#endif /* _ANALYSIS_DB_SNAPSHOT_H */