# HG changeset patch # User Sebastien Jodogne # Date 1423229756 -3600 # Node ID 50143292872756c318fd33140a52ecc1676930ee # Parent 179a3049b94223f8f84c579d3012157ffab538b8 refactoring diff -r 179a3049b942 -r 501432928727 OrthancServer/ServerIndex.cpp --- a/OrthancServer/ServerIndex.cpp Fri Feb 06 14:23:14 2015 +0100 +++ b/OrthancServer/ServerIndex.cpp Fri Feb 06 14:35:56 2015 +0100 @@ -441,6 +441,15 @@ } + void ServerIndex::LogChange(int64_t internalId, + ChangeType changeType, + ResourceType resourceType, + const std::string& publicId) + { + ServerIndexChange change(changeType, resourceType, publicId); + db_.LogChange(internalId, change); + } + uint64_t ServerIndex::IncrementGlobalSequenceInternal(GlobalProperty property) { diff -r 179a3049b942 -r 501432928727 OrthancServer/ServerIndex.h --- a/OrthancServer/ServerIndex.h Fri Feb 06 14:23:14 2015 +0100 +++ b/OrthancServer/ServerIndex.h Fri Feb 06 14:35:56 2015 +0100 @@ -110,11 +110,7 @@ void LogChange(int64_t internalId, ChangeType changeType, ResourceType resourceType, - const std::string& publicId) - { - ServerIndexChange change(changeType, resourceType, publicId); - db_.LogChange(internalId, change); - } + const std::string& publicId); uint64_t IncrementGlobalSequenceInternal(GlobalProperty property); diff -r 179a3049b942 -r 501432928727 Plugins/Engine/PluginsManager.cpp --- a/Plugins/Engine/PluginsManager.cpp Fri Feb 06 14:23:14 2015 +0100 +++ b/Plugins/Engine/PluginsManager.cpp Fri Feb 06 14:35:56 2015 +0100 @@ -296,16 +296,10 @@ { LOG(INFO) << "Found a shared library: " << it->path(); - try + SharedLibrary plugin(path); + if (IsOrthancPlugin(plugin)) { - SharedLibrary plugin(path); - if (IsOrthancPlugin(plugin)) - { - RegisterPlugin(path); - } - } - catch (OrthancException&) - { + RegisterPlugin(path); } } } diff -r 179a3049b942 -r 501432928727 Plugins/Include/OrthancCPlugin.h --- a/Plugins/Include/OrthancCPlugin.h Fri Feb 06 14:23:14 2015 +0100 +++ b/Plugins/Include/OrthancCPlugin.h Fri Feb 06 14:35:56 2015 +0100 @@ -525,7 +525,7 @@ /** - * @brief Opaque structure that contains information about the Orthanc core. + * @brief Data structure that contains information about the Orthanc core. **/ typedef struct _OrthancPluginContext_t { @@ -2078,8 +2078,6 @@ } - - #ifdef __cplusplus } #endif