location/loc_api/loc_api_v02/loc_api_v02_client.cpp
bool locClientGetSizeByRespIndId(uint32_t respIndId, size_t *pRespIndSize)
{
  size_t idx = 0, respIndTableSize = 0;

  // Validate input arguments
  if(pRespIndSize == NULL)
  {
    LOC_LOGE("%s:%d]: size argument NULL !", __func__, __LINE__);
    return false;
  }

  respIndTableSize = (sizeof(locClientRespIndTable)/sizeof(locClientRespIndTableStructT));
  for(idx=0; idx<respIndTableSize; idx++ )
  {
    if(respIndId == locClientRespIndTable[idx].respIndId)
    {
      // found
      *pRespIndSize = locClientRespIndTable[idx].respIndSize;

      LOC_LOGV("%s:%d]: resp ind Id %d size = %d\n", __func__, __LINE__,
                    respIndId, (uint32_t)*pRespIndSize);
      return true;
    }
  }

  //not found
  return false;
}
/** locClientGetSizeByRespIndId
 *  @brief Get the size of the response indication structure,
 *         from a specified id
 *  @param [in]  respIndId
 *  @param [out] pRespIndSize
 *  @return true if resp ID was found; else false
*/
locClientGetSizeByRespIndId
@brief Get the size of the response indication structure,
from a specified id
@param [in]  respIndId
@param [out] pRespIndSize
@return true if resp ID was found; else false
locClientGetSizeByRespIndId @brief Get the size of the response indication structure from a specified id @param [ in ] respIndId @param [ out ] pRespIndSize @return true if resp ID was found ; else false
bool locClientGetSizeByRespIndId(uint32_t respIndId, size_t *pRespIndSize)
{
  size_t idx = 0, respIndTableSize = 0;
  if(pRespIndSize == NULL)
  {
    LOC_LOGE("%s:%d]: size argument NULL !", __func__, __LINE__);
    return false;
  }
  respIndTableSize = (sizeof(locClientRespIndTable)/sizeof(locClientRespIndTableStructT));
  for(idx=0; idx<respIndTableSize; idx++ )
  {
    if(respIndId == locClientRespIndTable[idx].respIndId)
    {
      *pRespIndSize = locClientRespIndTable[idx].respIndSize;
      LOC_LOGV("%s:%d]: resp ind Id %d size = %d\n", __func__, __LINE__,
                    respIndId, (uint32_t)*pRespIndSize);
      return true;
    }
  }
  return false;
}
bool locClientGetSizeByRespIndId ( uint32_t respIndId , size_t * pRespIndSize ) { size_t idx = 0 , respIndTableSize = 0 ; if ( pRespIndSize == NULL ) { LOC_LOGE ( " " , __func__ , __LINE__ ) ; return false ; } respIndTableSize = ( sizeof ( locClientRespIndTable ) / sizeof ( locClientRespIndTableStructT ) ) ; for ( idx = 0 ; idx < respIndTableSize ; idx ++ ) { if ( respIndId == locClientRespIndTable [ idx ] . respIndId ) { * pRespIndSize = locClientRespIndTable [ idx ] . respIndSize ; LOC_LOGV ( " \n " , __func__ , __LINE__ , respIndId , ( uint32_t ) * pRespIndSize ) ; return true ; } } return false ; }
locClientGetSizeByRespIndId
  @brief Get the size of the response indication structure,
         from a specified id
  @param [in]  respIndId
  @param [out] pRespIndSize
  @return true if resp ID was found; else false
locClientGetSizeByRespIndId @brief Get the size of the response indication structure from a specified id @param [ in ] respIndId @param [ out ] pRespIndSize @return true if resp ID was found ; else false
// Validate input arguments // found //not found