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

Method RegisterToUserReEnter

Include/XnCppWrapper.h:7969–7988  ·  view source on GitHub ↗

* @brief Registers an event handler for the 'User Reenter' event. * * @param [in] handler Callback function to be invoked when the event is raised. * @param [in] pCookie User's cookie, to be delivered to the callback. * @param [out] hCallback Handle to the callback to be used for unregistering it. * * For full details and usage of the parameters, see @ref reg_to_events. *

Source from the content-addressed store, hash-verified

7967 * For full details and usage of the parameters, see @ref reg_to_events.
7968 */
7969 inline XnStatus RegisterToUserReEnter(UserHandler handler, void* pCookie, XnCallbackHandle& hCallback)
7970 {
7971 XnStatus nRetVal = XN_STATUS_OK;
7972
7973 UserSingleCookie* pUserCookie;
7974 XN_VALIDATE_ALLOC(pUserCookie, UserSingleCookie);
7975 pUserCookie->handler = handler;
7976 pUserCookie->pUserCookie = pCookie;
7977
7978 nRetVal = xnRegisterToUserReEnter(GetHandle(), UserSingleCallback, pUserCookie, &pUserCookie->hCallback);
7979 if (nRetVal != XN_STATUS_OK)
7980 {
7981 xnOSFree(pUserCookie);
7982 return (nRetVal);
7983 }
7984
7985 hCallback = pUserCookie;
7986
7987 return (XN_STATUS_OK);
7988 }
7989
7990 /**
7991 * @brief Unregisters an event handler for the 'User Reenter' event.

Callers 3

xnRegisterToUserReEnterFunction · 0.80
mainFunction · 0.80

Calls 3

xnRegisterToUserReEnterFunction · 0.85
GetHandleFunction · 0.85
xnOSFreeFunction · 0.50

Tested by

no test coverage detected