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

Function xnUnregisterFromGeneralIntValueChange

Source/OpenNI/XnOpenNI.cpp:3157–3167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3155}
3156
3157XN_C_API void xnUnregisterFromGeneralIntValueChange(XnNodeHandle hInstance, const XnChar* strCap, XnCallbackHandle hCallback)
3158{
3159 XnProductionNodeInterfaceContainer* pInterface = hInstance->pModuleInstance->pLoaded->pInterface;
3160 XnModuleNodeHandle hModuleNode = hInstance->pModuleInstance->hNode;
3161 XN_VALIDATE_FUNC_PTR_RET(pInterface->GeneralInt.UnregisterFromValueChange, );
3162
3163 XnModuleStateCookie* pModuleCookie = (XnModuleStateCookie*)hCallback;
3164 pModuleCookie->hNode->pRegistrationCookiesHash->Remove(pModuleCookie);
3165 pInterface->GeneralInt.UnregisterFromValueChange(hModuleNode, strCap, pModuleCookie->hModuleCallback);
3166 xnOSFree(pModuleCookie);
3167}
3168
3169//---------------------------------------------------------------------------
3170// Production Nodes

Calls 3

xnOSFreeFunction · 0.50
RemoveMethod · 0.45

Tested by

no test coverage detected