| 322 | } |
| 323 | |
| 324 | inline 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 | |
| 338 | XnStatus XnModuleLoader::AddModuleGenerators(const XnChar* strModuleFile, XN_LIB_HANDLE hLib, const XnChar* strConfigDir) |
| 339 | { |
no test coverage detected