Mercurial > hg > orthanc
comparison OrthancServer/ServerContext.cpp @ 997:1b1d51e9f1a2 lua-scripting
return Json from Lua
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 03 Jul 2014 18:12:50 +0200 |
parents | cf52f3bcb2b3 |
children | 4136fab6a639 |
comparison
equal
deleted
inserted
replaced
996:cf52f3bcb2b3 | 997:1b1d51e9f1a2 |
---|---|
102 { | 102 { |
103 Json::Value simplified; | 103 Json::Value simplified; |
104 SimplifyTags(simplified, dicomJson); | 104 SimplifyTags(simplified, dicomJson); |
105 | 105 |
106 LuaFunctionCall call(locker.GetLua(), RECEIVED_INSTANCE_FILTER); | 106 LuaFunctionCall call(locker.GetLua(), RECEIVED_INSTANCE_FILTER); |
107 call.PushJSON(simplified); | 107 call.PushJson(simplified); |
108 call.PushString(remoteAet); | 108 call.PushString(remoteAet); |
109 | 109 |
110 if (!call.ExecutePredicate()) | 110 if (!call.ExecutePredicate()) |
111 { | 111 { |
112 return false; | 112 return false; |