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

Function xnGetDeviceName

Source/OpenNI/XnOpenNI.cpp:3456–3463  ·  view source on GitHub ↗

--------------------------------------------------------------------------- Device Identification Capability ---------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

3454// Device Identification Capability
3455//---------------------------------------------------------------------------
3456XN_C_API XnStatus xnGetDeviceName(XnNodeHandle hInstance, XnChar* strBuffer, XnUInt32* pnBufferSize)
3457{
3458 XN_VALIDATE_INTERFACE_TYPE(hInstance, XN_NODE_TYPE_DEVICE);
3459 XnDeviceInterfaceContainer* pInterface = (XnDeviceInterfaceContainer*)hInstance->pModuleInstance->pLoaded->pInterface;
3460 XnModuleNodeHandle hModuleNode = hInstance->pModuleInstance->hNode;
3461 XN_VALIDATE_FUNC_PTR(pInterface->Identification.GetDeviceName);
3462 return pInterface->Identification.GetDeviceName(hModuleNode, strBuffer, pnBufferSize);
3463}
3464
3465XN_C_API XnStatus xnGetVendorSpecificData(XnNodeHandle hInstance, XnChar* strBuffer, XnUInt32* pnBufferSize)
3466{

Callers 2

GetDeviceNameMethod · 0.85

Calls 1

GetDeviceNameMethod · 0.80

Tested by

no test coverage detected