botsense/bsModules/bsI2C/bsI2CServer.c
static BsModCtlBlk_T *bsModCtlBlkNew(const char *sDevUri, bool_t bTrace)
{
  BsModCtlBlk_T *pCtlBlk;

  pCtlBlk = NEW(BsModCtlBlk_T);

  pCtlBlk->m_uRefCnt  = 0;
  pCtlBlk->m_sDevUri  = new_strdup(sDevUri);
  pCtlBlk->m_bTrace   = bTrace;

  return pCtlBlk;
}
/*!
 * \brief Allocate a new resource control block.
 *
 * Multiple virtual connection to the same \h_i2c device share the same
 * control block.
 *
 * \param sDevUri   Device URI.
 * \param bTrace    Do [not] trace messages.
 *
 * \return Pointer to new allocated control block.
 */
\brief Allocate a new resource control block.
Multiple virtual connection to the same \h_i2c device share the same
control block.

\param sDevUri   Device URI.
\param bTrace    Do [not] trace messages.

\return Pointer to new allocated control block.
\ brief Allocate a new resource control block . Multiple virtual connection to the same \ h_i2c device share the same control block . \ param sDevUri Device URI . \ param bTrace Do [ not ] trace messages . \ return Pointer to new allocated control block .
static BsModCtlBlk_T *bsModCtlBlkNew(const char *sDevUri, bool_t bTrace)
{
  BsModCtlBlk_T *pCtlBlk;
  pCtlBlk = NEW(BsModCtlBlk_T);
  pCtlBlk->m_uRefCnt  = 0;
  pCtlBlk->m_sDevUri  = new_strdup(sDevUri);
  pCtlBlk->m_bTrace   = bTrace;
  return pCtlBlk;
}
static BsModCtlBlk_T * bsModCtlBlkNew ( const char * sDevUri , bool_t bTrace ) { BsModCtlBlk_T * pCtlBlk ; pCtlBlk = NEW ( BsModCtlBlk_T ) ; pCtlBlk -> m_uRefCnt = 0 ; pCtlBlk -> m_sDevUri = new_strdup ( sDevUri ) ; pCtlBlk -> m_bTrace = bTrace ; return pCtlBlk ; }
\brief Allocate a new resource control block.
\ brief Allocate a new resource control block .