Mercurial > hg > orthanc-python
comparison Sources/Plugin.cpp @ 203:28531e615104
documented orthanc.RegisterIncomingHttpRequestFilter() and orthanc.RegisterOnStoredInstanceCallback()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 03 Jul 2024 12:03:09 +0200 |
parents | d7a6e75558ee |
children | 234681297600 |
comparison
equal
deleted
inserted
replaced
202:ba4dd45ab937 | 203:28531e615104 |
---|---|
281 * Add all the manual global functions | 281 * Add all the manual global functions |
282 **/ | 282 **/ |
283 | 283 |
284 std::list<PyMethodDef> functions; | 284 std::list<PyMethodDef> functions; |
285 | 285 |
286 { | 286 |
287 PyMethodDef f = { "RegisterOnStoredInstanceCallback", RegisterOnStoredInstanceCallback, | |
288 METH_VARARGS, "" }; | |
289 functions.push_back(f); | |
290 } | |
291 | |
292 | |
293 /** | |
294 * New in release 3.0 | |
295 **/ | |
296 | |
297 { | |
298 PyMethodDef f = { "RegisterIncomingHttpRequestFilter", RegisterIncomingHttpRequestFilter, METH_VARARGS, "" }; | |
299 functions.push_back(f); | |
300 } | |
301 | |
302 | |
303 /** | 287 /** |
304 * New in release 3.2 | 288 * New in release 3.2 |
305 **/ | 289 **/ |
306 | 290 |
307 { | 291 { |
462 | 446 |
463 extern "C" | 447 extern "C" |
464 { | 448 { |
465 ORTHANC_PLUGINS_API int32_t OrthancPluginInitialize(OrthancPluginContext* c) | 449 ORTHANC_PLUGINS_API int32_t OrthancPluginInitialize(OrthancPluginContext* c) |
466 { | 450 { |
467 OrthancPlugins::SetGlobalContext(c); | 451 OrthancPlugins::SetGlobalContext(c, PLUGIN_NAME); |
468 ORTHANC_PLUGINS_LOG_WARNING("Python plugin is initializing"); | 452 ORTHANC_PLUGINS_LOG_WARNING("Python plugin is initializing"); |
469 | 453 |
470 | 454 |
471 /* Check the version of the Orthanc core */ | 455 /* Check the version of the Orthanc core */ |
472 if (OrthancPluginCheckVersion(c) == 0) | 456 if (OrthancPluginCheckVersion(c) == 0) |