diff --git a/src/gmio_core/error.h b/src/gmio_core/error.h index 2dc4078..51383cb 100644 --- a/src/gmio_core/error.h +++ b/src/gmio_core/error.h @@ -61,9 +61,9 @@ enum gmio_error /*! An error occurred with gmio_stream */ GMIO_ERROR_STREAM, - /*! Transfer was stopped by user, that is to say - * gmio_transfer::func_is_stop_requested() returned true */ - GMIO_ERROR_TRANSFER_STOPPED, + /*! Task was stopped by user, that is to say + * gmio_task_iface::func_is_stop_requested() returned true */ + GMIO_ERROR_TASK_STOPPED, /*! An error occured after a call to a function * diff --git a/src/gmio_stl/internal/stla_write.c b/src/gmio_stl/internal/stla_write.c index 9dabe48..d809807 100644 --- a/src/gmio_stl/internal/stla_write.c +++ b/src/gmio_stl/internal/stla_write.c @@ -295,7 +295,7 @@ int gmio_stla_write( /* Task control */ 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) */ /* Write end of solid */ diff --git a/src/gmio_stl/internal/stlb_write.c b/src/gmio_stl/internal/stlb_write.c index 20cc745..0155938 100644 --- a/src/gmio_stl/internal/stlb_write.c +++ b/src/gmio_stl/internal/stlb_write.c @@ -167,7 +167,7 @@ int gmio_stlb_write( /* Handle stop request */ if (gmio_no_error(error) && gmio_task_iface_is_stop_requested(task)) - error = GMIO_ERROR_TRANSFER_STOPPED; + error = GMIO_ERROR_TASK_STOPPED; } /* end for */ label_end: diff --git a/src/gmio_stl/stla_read.c b/src/gmio_stl/stla_read.c index 852643c..92d2385 100644 --- a/src/gmio_stl/stla_read.c +++ b/src/gmio_stl/stla_read.c @@ -175,7 +175,7 @@ int gmio_stla_read( if (parse_data.error) error = GMIO_STL_ERROR_PARSING; if (parse_data.strstream_cookie.is_stop_requested) - error = GMIO_ERROR_TRANSFER_STOPPED; + error = GMIO_ERROR_TASK_STOPPED; label_end: gmio_memblock_helper_release(&mblock_helper); diff --git a/src/gmio_stl/stlb_read.c b/src/gmio_stl/stlb_read.c index b71fcc4..b65072f 100644 --- a/src/gmio_stl/stlb_read.c +++ b/src/gmio_stl/stlb_read.c @@ -186,7 +186,7 @@ int gmio_stlb_read( mesh_creator, mblock->ptr, read_facet_count, i_facet); i_facet += read_facet_count; 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); } /* end while */