location/loc_api/loc_api_v02/loc_api_v02_client.cpp
static bool locClientGetSizeAndTypeByIndId (uint32_t indId, size_t *pIndSize,
                                         locClientIndEnumT *pIndType)
{
  // look in the event table
  if(true == locClientGetSizeByEventIndId(indId, pIndSize))
  {
    *pIndType = eventIndType;

    LOC_LOGV("%s:%d]: indId %d is an event size = %d\n", __func__, __LINE__,
                  indId, (uint32_t)*pIndSize);
    return true;
  }

  //else look in response table
  if(true == locClientGetSizeByRespIndId(indId, pIndSize))
  {
    *pIndType = respIndType;

    LOC_LOGV("%s:%d]: indId %d is a resp size = %d\n", __func__, __LINE__,
                  indId, (uint32_t)*pIndSize);
    return true;
  }

  // Id not found
  LOC_LOGW("%s:%d]: indId %d not found\n", __func__, __LINE__, indId);
  return false;
}
/** locClientGetSizeAndTypeByIndId
 *  @brief this function gets the size and the type (event,
 *         response)of the indication structure from its ID
 *  @param [in]  indId  ID of the indication
 *  @param [out] type   event or response indication
 *  @param [out] size   size of the indications
 *
 *  @return true if the ID was found, false otherwise */
locClientGetSizeAndTypeByIndId
@brief this function gets the size and the type (event,
response)of the indication structure from its ID
@param [in]  indId  ID of the indication
@param [out] type   event or response indication
@param [out] size   size of the indications

@return true if the ID was found, false otherwise
locClientGetSizeAndTypeByIndId @brief this function gets the size and the type ( event response ) of the indication structure from its ID @param [ in ] indId ID of the indication @param [ out ] type event or response indication @param [ out ] size size of the indications @return true if the ID was found false otherwise
static bool locClientGetSizeAndTypeByIndId (uint32_t indId, size_t *pIndSize,
                                         locClientIndEnumT *pIndType)
{
  if(true == locClientGetSizeByEventIndId(indId, pIndSize))
  {
    *pIndType = eventIndType;
    LOC_LOGV("%s:%d]: indId %d is an event size = %d\n", __func__, __LINE__,
                  indId, (uint32_t)*pIndSize);
    return true;
  }
  if(true == locClientGetSizeByRespIndId(indId, pIndSize))
  {
    *pIndType = respIndType;
    LOC_LOGV("%s:%d]: indId %d is a resp size = %d\n", __func__, __LINE__,
                  indId, (uint32_t)*pIndSize);
    return true;
  }
  LOC_LOGW("%s:%d]: indId %d not found\n", __func__, __LINE__, indId);
  return false;
}
static bool locClientGetSizeAndTypeByIndId ( uint32_t indId , size_t * pIndSize , locClientIndEnumT * pIndType ) { if ( true == locClientGetSizeByEventIndId ( indId , pIndSize ) ) { * pIndType = eventIndType ; LOC_LOGV ( " \n " , __func__ , __LINE__ , indId , ( uint32_t ) * pIndSize ) ; return true ; } if ( true == locClientGetSizeByRespIndId ( indId , pIndSize ) ) { * pIndType = respIndType ; LOC_LOGV ( " \n " , __func__ , __LINE__ , indId , ( uint32_t ) * pIndSize ) ; return true ; } LOC_LOGW ( " \n " , __func__ , __LINE__ , indId ) ; return false ; }
locClientGetSizeAndTypeByIndId
  @brief this function gets the size and the type (event,
         response)of the indication structure from its ID
  @param [in]  indId  ID of the indication
  @param [out] type   event or response indication
  @param [out] size   size of the indications
locClientGetSizeAndTypeByIndId @brief this function gets the size and the type ( event response ) of the indication structure from its ID @param [ in ] indId ID of the indication @param [ out ] type event or response indication @param [ out ] size size of the indications
// look in the event table //else look in response table // Id not found