"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/base/json-script.cpp" between
icinga2-2.11.5.tar.gz and icinga2-2.12.0.tar.gz

About: Icinga 2 is an enterprise grade monitoring system which keeps watch over networks and any conceivable network resource.

json-script.cpp  (icinga2-2.11.5):json-script.cpp  (icinga2-2.12.0)
skipping to change at line 28 skipping to change at line 28
auto jsonNSBehavior = new ConstNamespaceBehavior(); auto jsonNSBehavior = new ConstNamespaceBehavior();
Namespace::Ptr jsonNS = new Namespace(jsonNSBehavior); Namespace::Ptr jsonNS = new Namespace(jsonNSBehavior);
/* Methods */ /* Methods */
jsonNS->Set("encode", new Function("Json#encode", JsonEncodeShim, { "valu e" }, true)); jsonNS->Set("encode", new Function("Json#encode", JsonEncodeShim, { "valu e" }, true));
jsonNS->Set("decode", new Function("Json#decode", JsonDecode, { "value" } , true)); jsonNS->Set("decode", new Function("Json#decode", JsonDecode, { "value" } , true));
jsonNSBehavior->Freeze(); jsonNSBehavior->Freeze();
Namespace::Ptr systemNS = ScriptGlobal::Get("System"); Namespace::Ptr systemNS = ScriptGlobal::Get("System");
systemNS->SetAttribute("Json", std::make_shared<ConstEmbeddedNamespaceVal ue>(jsonNS)); systemNS->SetAttribute("Json", new ConstEmbeddedNamespaceValue(jsonNS));
}); });
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)