gmio_core: rename error code name GMIO_ERROR_TRANSFER_STOPPED

GitHub issue #7
This commit is contained in:
Hugues Delorme 2016-12-01 10:03:43 +01:00
parent bd7f665041
commit 9ce3e42fa8
5 changed files with 7 additions and 7 deletions

View File

@ -61,9 +61,9 @@ enum gmio_error
/*! An error occurred with gmio_stream */ /*! An error occurred with gmio_stream */
GMIO_ERROR_STREAM, GMIO_ERROR_STREAM,
/*! Transfer was stopped by user, that is to say /*! Task was stopped by user, that is to say
* gmio_transfer::func_is_stop_requested() returned true */ * gmio_task_iface::func_is_stop_requested() returned true */
GMIO_ERROR_TRANSFER_STOPPED, GMIO_ERROR_TASK_STOPPED,
/*! An error occured after a call to a <stdio.h> function /*! An error occured after a call to a <stdio.h> function
* *

View File

@ -295,7 +295,7 @@ int gmio_stla_write(
/* Task control */ /* Task control */
if (gmio_no_error(error) && gmio_task_iface_is_stop_requested(task)) if (gmio_no_error(error) && gmio_task_iface_is_stop_requested(task))
error = GMIO_ERROR_TRANSFER_STOPPED; error = GMIO_ERROR_TASK_STOPPED;
} /* end for (ifacet) */ } /* end for (ifacet) */
/* Write end of solid */ /* Write end of solid */

View File

@ -167,7 +167,7 @@ int gmio_stlb_write(
/* Handle stop request */ /* Handle stop request */
if (gmio_no_error(error) && gmio_task_iface_is_stop_requested(task)) if (gmio_no_error(error) && gmio_task_iface_is_stop_requested(task))
error = GMIO_ERROR_TRANSFER_STOPPED; error = GMIO_ERROR_TASK_STOPPED;
} /* end for */ } /* end for */
label_end: label_end:

View File

@ -175,7 +175,7 @@ int gmio_stla_read(
if (parse_data.error) if (parse_data.error)
error = GMIO_STL_ERROR_PARSING; error = GMIO_STL_ERROR_PARSING;
if (parse_data.strstream_cookie.is_stop_requested) if (parse_data.strstream_cookie.is_stop_requested)
error = GMIO_ERROR_TRANSFER_STOPPED; error = GMIO_ERROR_TASK_STOPPED;
label_end: label_end:
gmio_memblock_helper_release(&mblock_helper); gmio_memblock_helper_release(&mblock_helper);

View File

@ -186,7 +186,7 @@ int gmio_stlb_read(
mesh_creator, mblock->ptr, read_facet_count, i_facet); mesh_creator, mblock->ptr, read_facet_count, i_facet);
i_facet += read_facet_count; i_facet += read_facet_count;
if (gmio_task_iface_is_stop_requested(task)) if (gmio_task_iface_is_stop_requested(task))
error = GMIO_ERROR_TRANSFER_STOPPED; error = GMIO_ERROR_TASK_STOPPED;
} }
gmio_task_iface_handle_progress(task, i_facet, total_facet_count); gmio_task_iface_handle_progress(task, i_facet, total_facet_count);
} /* end while */ } /* end while */