FreeBSD/sys/dev/isci/scil/sci_base_iterator.c
/**
 * @brief Get the object currently pointed to by this iterator.
 *
 * @param[in] iterator_handle Handle to an iterator.
 *
 * @return void * : Object pointed to by this iterator.
 * @retval NULL If iterator is not currently pointing to a valid element.
 */
@brief Get the object currently pointed to by this iterator.
@param[in] iterator_handle Handle to an iterator.

@return void * : Object pointed to by this iterator.
@retval NULL If iterator is not currently pointing to a valid element.
@brief Get the object currently pointed to by this iterator . @param [ in ] iterator_handle Handle to an iterator . @return void * : Object pointed to by this iterator . @retval NULL If iterator is not currently pointing to a valid element .
void * sci_iterator_get_current(
   SCI_ITERATOR_HANDLE_T iterator_handle
)
{
   SCI_BASE_ITERATOR_T * iterator = (SCI_BASE_ITERATOR_T *)iterator_handle;
   void *current_object = NULL;
   if (iterator->current != NULL)
   {
      current_object = sci_abstract_list_get_object(iterator->current);
   }
   return current_object;
}
void * sci_iterator_get_current ( SCI_ITERATOR_HANDLE_T iterator_handle ) { SCI_BASE_ITERATOR_T * iterator = ( SCI_BASE_ITERATOR_T * ) iterator_handle ; void * current_object = NULL ; if ( iterator -> current != NULL ) { current_object = sci_abstract_list_get_object ( iterator -> current ) ; } return current_object ; }
@brief Get the object currently pointed to by this iterator.
@brief Get the object currently pointed to by this iterator .