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

Function xnInitFromXmlFileEx

Source/OpenNI/XnOpenNI.cpp:354–382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

352}
353
354XN_C_API XnStatus xnInitFromXmlFileEx(const XnChar* strFileName, XnContext** ppContext, XnEnumerationErrors* pErrors, XnNodeHandle* phScriptNode)
355{
356 XnStatus nRetVal = XN_STATUS_OK;
357
358 XN_VALIDATE_INPUT_PTR(strFileName);
359 XN_VALIDATE_OUTPUT_PTR(ppContext);
360 XN_VALIDATE_OUTPUT_PTR(phScriptNode);
361
362 *ppContext = NULL;
363 *phScriptNode = NULL;
364
365 nRetVal = xnLogInitFromXmlFile(strFileName);
366 XN_IS_STATUS_OK(nRetVal);
367
368 XnContext* pContext;
369 nRetVal = xnInit(&pContext);
370 XN_IS_STATUS_OK(nRetVal);
371
372 nRetVal = xnContextRunXmlScriptFromFileEx(pContext, strFileName, pErrors, phScriptNode);
373 if (nRetVal != XN_STATUS_OK)
374 {
375 xnContextRelease(pContext);
376 return (nRetVal);
377 }
378
379 *ppContext = pContext;
380
381 return (XN_STATUS_OK);
382}
383
384XN_C_API XnStatus xnInitFromXmlFile(const XnChar* strFileName, XnContext** ppContext, XnEnumerationErrors* pErrors)
385{

Callers 4

InitFromXmlFileFunction · 0.85
xnInitFromXmlFileFunction · 0.85
mainFunction · 0.85

Calls 4

xnLogInitFromXmlFileFunction · 0.85
xnInitFunction · 0.85
xnContextReleaseFunction · 0.85

Tested by

no test coverage detected