sdk/modules/lte/altcom/api/socket/altcom_select_async.c
/****************************************************************************
 * Name: teardown_callback
 *
 * Description:
 *   Unregister callback to be used for select async.
 *
 * Input Parameters:
 *   select_id  This is ID that identifies the select request.
 *
 * Returned Value:
 *   None
 *
 ****************************************************************************/
teardown_callback
Description:
Unregister callback to be used for select async.

Input Parameters:
select_id  This is ID that identifies the select request.

Returned Value:
None
teardown_callback Description : Unregister callback to be used for select async . Input Parameters : select_id This is ID that identifies the select request . Returned Value : None
static void teardown_callback(int32_t select_id)
{
  FAR struct select_asynccb_s *list;
  int32_t                     ret;
  list = search_callbacklist(select_id);
  if (list)
    {
      ret = delete_callbacklist(list);
      if (ret < 0)
        {
          DBGIF_LOG_ERROR("Failed to delete callbck list.\n");
        }
      else
        {
          free_callbacklist(list);
        }
    }
}
static void teardown_callback ( int32_t select_id ) { FAR struct select_asynccb_s * list ; int32_t ret ; list = search_callbacklist ( select_id ) ; if ( list ) { ret = delete_callbacklist ( list ) ; if ( ret < 0 ) { DBGIF_LOG_ERROR ( " \n " ) ; } else { free_callbacklist ( list ) ; } } }
Name: teardown_callback
 Description:
   Unregister callback to be used for select async.
Name : teardown_callback Description : Unregister callback to be used for select async .
/* Delte list from callback list */