botsense/bsProxy/bsProxyMod.c
static void *ModDllSym(BsProxyModIF_T *pModIF, const char *sSym)
{
  void  *pSym;
  char  *sEMsg;

  // clear any existing error
  dlerror();

  // get symbol address
  pSym = dlsym(pModIF->m_dllHandle, sSym);

  // error
  if( pSym == NULL )
  {
    sEMsg = dlerror();
    if( sEMsg == NULL )
    {
      sEMsg = "Not defined";
    }
    BSPROXY_MOD_LOG_ERROR(pModIF->m_sModUri, BS_ECODE_BAD_MOD,
                          "%s: %s.", sSym, sEMsg);
  }

  return pSym;
}
/*!
 * \brief Get the address of where the module symbol is loaded into memory.
 *
 * \param pModIF  Exported module interface.
 * \param sSym    Symbol name.
 *
 * \return
 * On success, returns the symbol address.\n
 * On failure, NULL is returned.
 */
\brief Get the address of where the module symbol is loaded into memory.
\param pModIF  Exported module interface.
\param sSym    Symbol name.

\return
On success, returns the symbol address.\n
On failure, NULL is returned.
\ brief Get the address of where the module symbol is loaded into memory . \ param pModIF Exported module interface . \ param sSym Symbol name . \ return On success returns the symbol address . \ n On failure NULL is returned .
static void *ModDllSym(BsProxyModIF_T *pModIF, const char *sSym)
{
  void  *pSym;
  char  *sEMsg;
  dlerror();
  pSym = dlsym(pModIF->m_dllHandle, sSym);
  if( pSym == NULL )
  {
    sEMsg = dlerror();
    if( sEMsg == NULL )
    {
      sEMsg = "Not defined";
    }
    BSPROXY_MOD_LOG_ERROR(pModIF->m_sModUri, BS_ECODE_BAD_MOD,
                          "%s: %s.", sSym, sEMsg);
  }
  return pSym;
}
static void * ModDllSym ( BsProxyModIF_T * pModIF , const char * sSym ) { void * pSym ; char * sEMsg ; dlerror ( ) ; pSym = dlsym ( pModIF -> m_dllHandle , sSym ) ; if ( pSym == NULL ) { sEMsg = dlerror ( ) ; if ( sEMsg == NULL ) { sEMsg = " " ; } BSPROXY_MOD_LOG_ERROR ( pModIF -> m_sModUri , BS_ECODE_BAD_MOD , " " , sSym , sEMsg ) ; } return pSym ; }
\brief Get the address of where the module symbol is loaded into memory.
\ brief Get the address of where the module symbol is loaded into memory .
// clear any existing error // get symbol address // error