Mercurial > hg > orthanc
diff OrthancServer/main.cpp @ 1995:f0acfa753973
New callback to handle non-worklists C-Find requests: OrthancPluginRegisterCFindCallback()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 24 May 2016 17:45:56 +0200 |
parents | ce90d109bb64 |
children | 364cc624eb65 |
line wrap: on
line diff
--- a/OrthancServer/main.cpp Tue May 17 15:45:49 2016 +0200 +++ b/OrthancServer/main.cpp Tue May 24 17:45:56 2016 +0200 @@ -756,10 +756,17 @@ dicomServer.SetFindRequestHandlerFactory(serverFactory); #if ORTHANC_PLUGINS_ENABLED == 1 - if (plugins && - plugins->HasWorklistHandler()) + if (plugins != NULL) { - dicomServer.SetWorklistRequestHandlerFactory(*plugins); + if (plugins->HasWorklistHandler()) + { + dicomServer.SetWorklistRequestHandlerFactory(*plugins); + } + + if (plugins->HasFindHandler()) + { + dicomServer.SetFindRequestHandlerFactory(*plugins); + } } #endif