summaryrefslogtreecommitdiff
path: root/src/analysis/db/protocol.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2015-07-22 21:23:49 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2015-07-22 21:23:49 (GMT)
commit21537636cd8318cf5a720211619ad3c3023b52e9 (patch)
tree93380a9152f18e39cf0ba427ede96533c5c6f16a /src/analysis/db/protocol.h
parent361a0953c73635c6c383516280a8d634768f8226 (diff)
Fortified the client/server protocol and first exchanges.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@554 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/analysis/db/protocol.h')
-rw-r--r--src/analysis/db/protocol.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/analysis/db/protocol.h b/src/analysis/db/protocol.h
index 85d44cb..04bbd33 100644
--- a/src/analysis/db/protocol.h
+++ b/src/analysis/db/protocol.h
@@ -29,7 +29,7 @@
/**
* Version de la définition courante du protocole.
*/
-#define CDB_PROTOCOL_VERSION 0xc0de0001
+#define CDB_PROTOCOL_VERSION 0xc0de0002
@@ -84,7 +84,7 @@ typedef enum _DBFeatures
{
DBF_BOOKMARKS, /* Signets dans le code */
DBF_COMMENTS, /* Commentaires ajoutés */
- DBF_SEGMENTS_DISPLAY, /* Choix d'affichage */
+ DBF_DISPLAY_SWITCHERS, /* Choix d'affichage */
DBF_COUNT
@@ -132,9 +132,13 @@ typedef enum _DBCommand
typedef enum _DBError
{
DBE_NONE, /* Succès d'une opération */
+ DBE_BAD_EXCHANGE, /* Incohérence des échanges */
+
DBE_WRONG_VERSION, /* Proto Client != Serveur */
DBE_SYS_ERROR, /* Erreur suite à un appel sys.*/
DBE_ARCHIVE_ERROR, /* Soucis du côté libarchive */
+ DBE_XML_VERSION_ERROR, /* Vieille archive présente */
+ DBE_DB_LOADING_ERROR, /* Erreur pendant le chargement*/
DBE_COUNT