Mercurial > hg > orthanc
diff OrthancServer/OrthancRestApi/OrthancRestApi.h @ 1730:bc34c69b594a
New URI "/tools/shutdown" to stop Orthanc from the REST API
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 21 Oct 2015 10:34:29 +0200 |
parents | 1b7def486e62 |
children | b1291df2f780 |
line wrap: on
line diff
--- a/OrthancServer/OrthancRestApi/OrthancRestApi.h Tue Oct 20 11:22:50 2015 +0200 +++ b/OrthancServer/OrthancRestApi/OrthancRestApi.h Wed Oct 21 10:34:29 2015 +0200 @@ -49,6 +49,7 @@ private: ServerContext& context_; + bool leaveBarrier_; bool resetRequestReceived_; void RegisterSystem(); @@ -65,10 +66,17 @@ static void ResetOrthanc(RestApiPostCall& call); + static void ShutdownOrthanc(RestApiPostCall& call); + public: OrthancRestApi(ServerContext& context); - const bool& ResetRequestReceivedFlag() const + const bool& LeaveBarrierFlag() const + { + return leaveBarrier_; + } + + bool IsResetRequestReceived() const { return resetRequestReceived_; }