Mercurial > hg > orthanc
comparison Plugins/Samples/ModalityWorklists/Plugin.cpp @ 2268:ce5c13b95dac
New function: OrthancPluginRegisterIncomingHttpRequestFilter2()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 22 Feb 2017 21:49:16 +0100 |
parents | a3a65de1840f |
children | 89d17c72287b |
comparison
equal
deleted
inserted
replaced
2267:f915aff7a866 | 2268:ce5c13b95dac |
---|---|
190 context_ = c; | 190 context_ = c; |
191 | 191 |
192 /* Check the version of the Orthanc core */ | 192 /* Check the version of the Orthanc core */ |
193 if (OrthancPluginCheckVersion(c) == 0) | 193 if (OrthancPluginCheckVersion(c) == 0) |
194 { | 194 { |
195 char info[1024]; | 195 OrthancPlugins::ReportMinimalOrthancVersion(context_, |
196 sprintf(info, "Your version of Orthanc (%s) must be above %d.%d.%d to run this plugin", | 196 ORTHANC_PLUGINS_MINIMAL_MAJOR_NUMBER, |
197 context_->orthancVersion, | 197 ORTHANC_PLUGINS_MINIMAL_MINOR_NUMBER, |
198 ORTHANC_PLUGINS_MINIMAL_MAJOR_NUMBER, | 198 ORTHANC_PLUGINS_MINIMAL_REVISION_NUMBER); |
199 ORTHANC_PLUGINS_MINIMAL_MINOR_NUMBER, | |
200 ORTHANC_PLUGINS_MINIMAL_REVISION_NUMBER); | |
201 OrthancPluginLogError(context_, info); | |
202 return -1; | 199 return -1; |
203 } | 200 } |
204 | 201 |
205 OrthancPlugins::LogWarning(context_, "Sample worklist plugin is initializing"); | 202 OrthancPlugins::LogWarning(context_, "Sample worklist plugin is initializing"); |
206 OrthancPluginSetDescription(context_, "Serve DICOM modality worklists from a folder with Orthanc."); | 203 OrthancPluginSetDescription(context_, "Serve DICOM modality worklists from a folder with Orthanc."); |