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

Function FindFuncAddress

Source/OpenNI/XnModuleLoader.cpp:324–336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

322}
323
324inline static XnStatus FindFuncAddress(const XnChar* strModuleFile, XN_LIB_HANDLE hLib, const XnChar* funcName, XnFarProc* pFunc)
325{
326 XnStatus nRetVal = XN_STATUS_OK;
327
328 nRetVal = xnOSGetProcAddress(hLib, funcName, pFunc);
329 if (nRetVal != XN_STATUS_OK)
330 {
331 xnLogWarning(XN_MASK_MODULE_LOADER, "'%s' is not a valid module: can't find '%s' function!", strModuleFile, funcName);
332 return (nRetVal);
333 }
334
335 return (XN_STATUS_OK);
336}
337
338XnStatus XnModuleLoader::AddModuleGenerators(const XnChar* strModuleFile, XN_LIB_HANDLE hLib, const XnChar* strConfigDir)
339{

Callers 1

AddModuleGeneratorsMethod · 0.85

Calls 1

xnOSGetProcAddressFunction · 0.50

Tested by

no test coverage detected