| 256 | } |
| 257 | |
| 258 | XN_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 | |
| 273 | XN_C_API XnStatus xnContextRunXmlScriptFromFileEx(XnContext* pContext, const XnChar* strFileName, XnEnumerationErrors* pErrors, XnNodeHandle* phScriptNode) |
| 274 | { |
no test coverage detected