2015-03-03 00:38:33 +08:00
|
|
|
/****************************************************************************
|
|
|
|
** GeomIO Library
|
|
|
|
** Copyright FougSys (2 Mar. 2015)
|
|
|
|
** contact@fougsys.fr
|
|
|
|
**
|
|
|
|
** This software is a reusable library whose purpose is to provide complete
|
|
|
|
** I/O support for various CAD file formats (eg. STL)
|
|
|
|
**
|
|
|
|
** This software is governed by the CeCILL-B license under French law and
|
|
|
|
** abiding by the rules of distribution of free software. You can use,
|
|
|
|
** modify and/ or redistribute the software under the terms of the CeCILL-B
|
|
|
|
** license as circulated by CEA, CNRS and INRIA at the following URL
|
|
|
|
** "http://www.cecill.info".
|
|
|
|
****************************************************************************/
|
|
|
|
|
2015-03-13 00:46:40 +08:00
|
|
|
#include "transfer.h"
|
2013-01-11 01:48:46 +08:00
|
|
|
|
2014-11-20 16:25:43 +08:00
|
|
|
#include <stddef.h>
|
2013-01-11 01:48:46 +08:00
|
|
|
|
2015-03-13 00:46:40 +08:00
|
|
|
gmio_bool_t gmio_transfer_is_stop_requested(const gmio_transfer_t* trsf)
|
2013-01-11 01:48:46 +08:00
|
|
|
{
|
2015-03-13 00:46:40 +08:00
|
|
|
if (trsf != NULL && trsf->is_stop_requested_func != NULL)
|
|
|
|
return trsf->is_stop_requested_func(trsf->cookie);
|
2015-03-03 17:35:36 +08:00
|
|
|
return GMIO_FALSE;
|
2013-01-11 01:48:46 +08:00
|
|
|
}
|
2015-03-13 17:32:18 +08:00
|
|
|
|
|
|
|
gmio_bool_t gmio_transfer_handle_progress(
|
|
|
|
const gmio_transfer_t* trsf, size_t value, size_t max_value)
|
|
|
|
{
|
|
|
|
if (trsf != NULL && trsf->handle_progress_func != NULL)
|
|
|
|
trsf->handle_progress_func(trsf->cookie, value, max_value);
|
|
|
|
}
|