botsense/bsProxy/bsProxyMod.c
static int ModHashAdd(const char *sModUri, BsProxyModIF_T *pModIF)
{
  char *sKey = new_strdup(sModUri);

  // insert into hash table, automatically allocating hnode_t
  if( !hash_insert(BsModHashTbl, sKey, pModIF) )
  {
    LOGERROR("hash_insert(%s,...) failed", sKey);
    ModHashDeleteData(sKey, pModIF);
    return -BS_ECODE_NO_RSRC;
  }

  return BS_OK;
}
/*!
 * \brief Add the module data to the i/f module hash table.
 *
 * \param sModUri   Allocated interface module hash table key.
 * \param pModIF    Allocated interface module hash table value.
 *
 * \copydoc doc_return_std
 */
\brief Add the module data to the i/f module hash table.
\param sModUri   Allocated interface module hash table key.
\param pModIF    Allocated interface module hash table value.


\ brief Add the module data to the i / f module hash table . \ param sModUri Allocated interface module hash table key . \ param pModIF Allocated interface module hash table value .
static int ModHashAdd(const char *sModUri, BsProxyModIF_T *pModIF)
{
  char *sKey = new_strdup(sModUri);
  if( !hash_insert(BsModHashTbl, sKey, pModIF) )
  {
    LOGERROR("hash_insert(%s,...) failed", sKey);
    ModHashDeleteData(sKey, pModIF);
    return -BS_ECODE_NO_RSRC;
  }
  return BS_OK;
}
static int ModHashAdd ( const char * sModUri , BsProxyModIF_T * pModIF ) { char * sKey = new_strdup ( sModUri ) ; if ( ! hash_insert ( BsModHashTbl , sKey , pModIF ) ) { LOGERROR ( " " , sKey ) ; ModHashDeleteData ( sKey , pModIF ) ; return - BS_ECODE_NO_RSRC ; } return BS_OK ; }
\brief Add the module data to the i/f module hash table.
\ brief Add the module data to the i / f module hash table .
// insert into hash table, automatically allocating hnode_t