From 2c9c7d5d0117d09b1ed32e11079afce2d45574f0 Mon Sep 17 00:00:00 2001 From: Karel Slany Date: Tue, 27 Sep 2016 12:53:12 +0200 Subject: [PATCH] Added a new value into isds_DbState. A new data-box state 6 has been introduced. (13.4.2016, Provozni rad ISDS, WS_ISDS_Sprava_datovych_schranek.pdf). Because of the functional similarity, the name for the new state has been derived from the existing name for state 2. --- client/common.c | 1 + doc/libisds.xml | 7 ++++++- src/isds.h | 3 ++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/client/common.c b/client/common.c index a43c1d6..6d10c98 100644 --- a/client/common.c +++ b/client/common.c @@ -85,6 +85,7 @@ void print_DbState(const long int state) { case DBSTATE_NOT_YET_ACCESSIBLE: printf("NOT_YET_ACCESSIBLE\n"); break; case DBSTATE_PERM_UNACCESSIBLE: printf("PERM_UNACCESSIBLE\n"); break; case DBSTATE_REMOVED: printf("REMOVED\n"); break; + case DBSTATE_TEMP_UNACCESSIBLE_LAW: printf("DBSTATE_TEMP_UNACCESSIBLE_LAW"); break; default: printf("\n", state); } } diff --git a/doc/libisds.xml b/doc/libisds.xml index 46ba9b2..8af5480 100644 --- a/doc/libisds.xml +++ b/doc/libisds.xml @@ -954,7 +954,7 @@ err = isds_cleanup(); DBSTATE_TEMP_UNACCESSIBLE - The box is temporarily inaccessible. + The box is temporarily inaccessible (at the request of the user). @@ -971,6 +971,11 @@ err = isds_cleanup(); DBSTATE_REMOVED The box has been removed. + + + DBSTATE_TEMP_UNACCESSIBLE_LAW + The box is temporarily inaccessible (because of the reasons enumerated in the law). + diff --git a/src/isds.h b/src/isds.h index c2a6145..14d6b46 100644 --- a/src/isds.h +++ b/src/isds.h @@ -202,7 +202,8 @@ typedef enum { DBSTATE_TEMP_UNACCESSIBLE = 2, DBSTATE_NOT_YET_ACCESSIBLE = 3, DBSTATE_PERM_UNACCESSIBLE = 4, - DBSTATE_REMOVED = 5 + DBSTATE_REMOVED = 5, + DBSTATE_TEMP_UNACCESSIBLE_LAW = 6 } isds_DbState; /* User permissions from point of view of ISDS. -- 2.11.4.GIT