Mercurial > hg > orthanc
diff OrthancServer/ServerContext.cpp @ 1189:6b9b02a16e99 db-changes
NewChildInstance change type
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 25 Sep 2014 17:02:28 +0200 |
parents | 0561f2087cc9 |
children | 1169528a9a5f |
line wrap: on
line diff
--- a/OrthancServer/ServerContext.cpp Thu Sep 25 16:42:19 2014 +0200 +++ b/OrthancServer/ServerContext.cpp Thu Sep 25 17:02:28 2014 +0200 @@ -371,7 +371,7 @@ } catch (OrthancException& e) { - LOG(ERROR) << "Error in OnStoredInstance callback (Lua): " << e.What(); + LOG(ERROR) << "Error in OnStoredInstance callback (plugins): " << e.What(); } } } @@ -520,4 +520,23 @@ { return index_.DeleteResource(target, uuid, expectedType); } + + + void ServerContext::SignalChange(ChangeType changeType, + ResourceType resourceType, + const std::string& publicId) + { + if (plugins_ != NULL) + { + try + { + plugins_->SignalChange(changeType, resourceType, publicId); + } + catch (OrthancException& e) + { + LOG(ERROR) << "Error in OnChangeCallback (plugins): " << e.What(); + } + } + } + }