MCPcopy Create free account
hub / github.com/OpenNI/OpenNI / xnContextRunXmlScriptFromFile

Function xnContextRunXmlScriptFromFile

Source/OpenNI/XnOpenNI.cpp:258–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256}
257
258XN_C_API XnStatus xnContextRunXmlScriptFromFile(XnContext* pContext, const XnChar* strFileName, XnEnumerationErrors* pErrors)
259{
260 XnStatus nRetVal = XN_STATUS_OK;
261
262 XnNodeHandle hScriptNode;
263 nRetVal = xnContextRunXmlScriptFromFileEx(pContext, strFileName, pErrors, &hScriptNode);
264 XN_IS_STATUS_OK(nRetVal);
265
266 // take ownership of created node
267 xnMarkOwnedNode(pContext, hScriptNode);
268 xnProductionNodeRelease(hScriptNode);
269
270 return (XN_STATUS_OK);
271}
272
273XN_C_API XnStatus xnContextRunXmlScriptFromFileEx(XnContext* pContext, const XnChar* strFileName, XnEnumerationErrors* pErrors, XnNodeHandle* phScriptNode)
274{

Callers 1

RunXmlScriptFromFileFunction · 0.85

Calls 3

xnMarkOwnedNodeFunction · 0.85
xnProductionNodeReleaseFunction · 0.85

Tested by

no test coverage detected