| 1511 | } |
| 1512 | |
| 1513 | void xnSetGlobalErrorState(XnContext* pContext, XnStatus errorState) |
| 1514 | { |
| 1515 | if (pContext->globalErrorState != errorState) |
| 1516 | { |
| 1517 | if (errorState == XN_STATUS_OK) |
| 1518 | { |
| 1519 | xnLoggerInfo(g_logger, "Context has returned to normal state."); |
| 1520 | } |
| 1521 | else |
| 1522 | { |
| 1523 | xnLoggerInfo(g_logger, "Context has entered error state: %s", xnGetStatusString(errorState)); |
| 1524 | } |
| 1525 | |
| 1526 | pContext->globalErrorState = errorState; |
| 1527 | pContext->globalErrorChangeEvent.Raise(errorState); |
| 1528 | } |
| 1529 | } |
| 1530 | |
| 1531 | void XN_CALLBACK_TYPE xnNodeErrorStateChanged(XnNodeHandle hNode, void* /*pCookie*/) |
| 1532 | { |
no test coverage detected