summaryrefslogtreecommitdiff
path: root/src/analysis/db
diff options
context:
space:
mode:
Diffstat (limited to 'src/analysis/db')
-rw-r--r--src/analysis/db/client.c73
-rw-r--r--src/analysis/db/client.h9
2 files changed, 82 insertions, 0 deletions
diff --git a/src/analysis/db/client.c b/src/analysis/db/client.c
index 9558f85..b4e856f 100644
--- a/src/analysis/db/client.c
+++ b/src/analysis/db/client.c
@@ -1569,3 +1569,76 @@ bool g_hub_client_set_snapshot_desc(GHubClient *client, const snapshot_id_t *id,
return result;
}
+
+
+/******************************************************************************
+* *
+* Paramètres : client = client pour les accès distants à manipuler. *
+* id = identifiant d'instantané à traiter. *
+* *
+* Description : Restaure un ancien instantané. *
+* *
+* Retour : true si la commande a bien été envoyée, false sinon. *
+* *
+* Remarques : - *
+* *
+******************************************************************************/
+
+bool g_hub_client_restore_snapshot(GHubClient *client, const snapshot_id_t *id)
+{
+ bool result; /* Bilan à retourner */
+
+ result = false;
+
+ return result;
+
+}
+
+
+/******************************************************************************
+* *
+* Paramètres : client = client pour les accès distants à manipuler. *
+* id = identifiant d'instantané à traiter. *
+* *
+* Description : Crée un nouvel instantané à partir d'un autre. *
+* *
+* Retour : true si la commande a bien été envoyée, false sinon. *
+* *
+* Remarques : - *
+* *
+******************************************************************************/
+
+bool g_hub_client_create_snapshot(GHubClient *client, const snapshot_id_t *id)
+{
+ bool result; /* Bilan à retourner */
+
+ result = false;
+
+ return result;
+
+}
+
+
+/******************************************************************************
+* *
+* Paramètres : client = client pour les accès distants à manipuler. *
+* id = identifiant d'instantané à traiter. *
+* rec = programme une suppression récursive. *
+* *
+* Description : Supprime un ancien instantané. *
+* *
+* Retour : true si la commande a bien été envoyée, false sinon. *
+* *
+* Remarques : - *
+* *
+******************************************************************************/
+
+bool g_hub_client_remove_snapshot(GHubClient *client, const snapshot_id_t *id, bool rec)
+{
+ bool result; /* Bilan à retourner */
+
+ result = false;
+
+ return result;
+
+}
diff --git a/src/analysis/db/client.h b/src/analysis/db/client.h
index 5ad4ed0..af47b5c 100644
--- a/src/analysis/db/client.h
+++ b/src/analysis/db/client.h
@@ -89,6 +89,15 @@ bool g_hub_client_set_snapshot_name(GHubClient *, const snapshot_id_t *, const c
/* Définit la description d'un instantané donné. */
bool g_hub_client_set_snapshot_desc(GHubClient *, const snapshot_id_t *, const char *);
+/* Restaure un ancien instantané. */
+bool g_hub_client_restore_snapshot(GHubClient *, const snapshot_id_t *);
+
+/* Crée un nouvel instantané à partir d'un autre. */
+bool g_hub_client_create_snapshot(GHubClient *, const snapshot_id_t *);
+
+/* Supprime un ancien instantané. */
+bool g_hub_client_remove_snapshot(GHubClient *, const snapshot_id_t *, bool);
+
#endif /* _ANALYSIS_DB_CLIENT_H */