diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2019-10-27 22:33:11 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2019-10-27 23:10:41 (GMT) |
commit | 609c184c3edb350a0da7fe29bf449a7189080c92 (patch) | |
tree | 4ddd6320ee58a6169cad377f9889a08298fbec47 /src/analysis/db/protocol.h | |
parent | d0547bc36bd6ccb84eff128fc6e4f2df034a705a (diff) |
Implemented snapshot related management features.
Diffstat (limited to 'src/analysis/db/protocol.h')
-rw-r--r-- | src/analysis/db/protocol.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/analysis/db/protocol.h b/src/analysis/db/protocol.h index b57c25c..f66d8fc 100644 --- a/src/analysis/db/protocol.h +++ b/src/analysis/db/protocol.h @@ -277,6 +277,34 @@ typedef enum _DBCommand DBC_SET_SNAPSHOT_DESC, /* Description de l'instantané */ + /** + * Gestion de la commande 'DBC_CREATE_SNAPSHOT'. + * + * Le client connecté envoie un paquet de la forme suivante : + * + * [ Gestion d'instantané : DBC_CREATE_SNAPSHOT ] + * + * Le serveur renvoie ensuite automatiquement un paquet + * de type 'DBC_SNAPSHOTS_UPDATED'. + */ + + DBC_CREATE_SNAPSHOT, /* Création d'instantané */ + + /** + * Gestion de la commande 'DBC_REMOVE_SNAPSHOT'. + * + * Le client connecté envoie un paquet de la forme suivante : + * + * [ Gestion d'instantané : DBC_REMOVE_SNAPSHOT ] + * [ <identifiant d'instantané> ] + * [ indicateur de récursivité : octet 0x1 ou 0x0 ] + * + * Le serveur renvoie ensuite automatiquement un paquet + * de type 'DBC_SNAPSHOTS_UPDATED'. + */ + + DBC_REMOVE_SNAPSHOT, /* Suppression d'instantané */ + DBC_COUNT } DBCommand; @@ -303,6 +331,8 @@ typedef enum _DBError DBE_XML_ERROR, /* Erreur lors d'une définition*/ DBE_SNAPSHOT_NOT_FOUND, /* Instantané non trouvé */ + DBE_SNAPSHOT_RESTORE_FAILURE, /* Echec d'une restauration */ + DBE_SNAPSHOT_ROOT_REMOVAL, /* Tentative de suppression */ DBE_COUNT |