botsense/bsProxy/bsProxyMod.c
const char *ModCbGetDevUri(BsVConnHnd_T hndVConn, char dest[], size_t n)
{
  BsProxyVConn_T  *pVConn;

  if( (pVConn = VConnAcquire(hndVConn)) != NULL )
  {
    strncpy(dest, pVConn->m_pThCtl->m_sDevUri, n);
    dest[n-1] = 0;
    VConnRelease(hndVConn);
  }
  else
  {
    dest[0] = 0;
  }

  return dest;
}
/*!
 * \brief Copy the device URI associated with the virtual connection.
 *
 * \param hndVConn    Virtual connection handle.
 * \param [out] dest  Destination buffer.
 * \param n           Size of buffer.
 *
 * \return Pointer to destination buffer dest.
 */
\brief Copy the device URI associated with the virtual connection.
\param hndVConn    Virtual connection handle.
\param [out] dest  Destination buffer.
\param n           Size of buffer.

\return Pointer to destination buffer dest.
\ brief Copy the device URI associated with the virtual connection . \ param hndVConn Virtual connection handle . \ param [ out ] dest Destination buffer . \ param n Size of buffer . \ return Pointer to destination buffer dest .
const char *ModCbGetDevUri(BsVConnHnd_T hndVConn, char dest[], size_t n)
{
  BsProxyVConn_T  *pVConn;
  if( (pVConn = VConnAcquire(hndVConn)) != NULL )
  {
    strncpy(dest, pVConn->m_pThCtl->m_sDevUri, n);
    dest[n-1] = 0;
    VConnRelease(hndVConn);
  }
  else
  {
    dest[0] = 0;
  }
  return dest;
}
const char * ModCbGetDevUri ( BsVConnHnd_T hndVConn , char dest [ ] , size_t n ) { BsProxyVConn_T * pVConn ; if ( ( pVConn = VConnAcquire ( hndVConn ) ) != NULL ) { strncpy ( dest , pVConn -> m_pThCtl -> m_sDevUri , n ) ; dest [ n - 1 ] = 0 ; VConnRelease ( hndVConn ) ; } else { dest [ 0 ] = 0 ; } return dest ; }
\brief Copy the device URI associated with the virtual connection.
\ brief Copy the device URI associated with the virtual connection .