Mercurial > hg > orthanc-python
comparison Sources/Plugin.cpp @ 11:88d47c1c458d
set a description
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 31 Mar 2020 17:04:15 +0200 |
parents | 7ed502b17b8f |
children | fd58eb5749ed |
comparison
equal
deleted
inserted
replaced
10:6f639ddfc4bc | 11:88d47c1c458d |
---|---|
157 extern "C" | 157 extern "C" |
158 { | 158 { |
159 ORTHANC_PLUGINS_API int32_t OrthancPluginInitialize(OrthancPluginContext* c) | 159 ORTHANC_PLUGINS_API int32_t OrthancPluginInitialize(OrthancPluginContext* c) |
160 { | 160 { |
161 OrthancPlugins::SetGlobalContext(c); | 161 OrthancPlugins::SetGlobalContext(c); |
162 | |
163 OrthancPlugins::LogWarning("Python plugin is initializing"); | 162 OrthancPlugins::LogWarning("Python plugin is initializing"); |
164 | 163 |
165 | 164 |
166 /* Check the version of the Orthanc core */ | 165 /* Check the version of the Orthanc core */ |
167 if (OrthancPluginCheckVersion(c) == 0) | 166 if (OrthancPluginCheckVersion(c) == 0) |
173 ORTHANC_PLUGINS_MINIMAL_MINOR_NUMBER, | 172 ORTHANC_PLUGINS_MINIMAL_MINOR_NUMBER, |
174 ORTHANC_PLUGINS_MINIMAL_REVISION_NUMBER); | 173 ORTHANC_PLUGINS_MINIMAL_REVISION_NUMBER); |
175 OrthancPluginLogError(c, info); | 174 OrthancPluginLogError(c, info); |
176 return -1; | 175 return -1; |
177 } | 176 } |
178 | 177 |
179 | 178 OrthancPluginSetDescription(c, "Run Python scripts as Orthanc plugins"); |
179 | |
180 try | 180 try |
181 { | 181 { |
182 /** | 182 /** |
183 * Detection of the user script | 183 * Detection of the user script |
184 **/ | 184 **/ |