gmio_core: rename error code name GMIO_ERROR_TRANSFER_STOPPED
GitHub issue #7
This commit is contained in:
parent
bd7f665041
commit
9ce3e42fa8
@ -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 <stdio.h> function
|
||||
*
|
||||
|
@ -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 */
|
||||
|
@ -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:
|
||||
|
@ -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);
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user