stl: fix constness of input param for foug_stla_write()

This commit is contained in:
Hugues Delorme 2014-03-27 17:35:40 +01:00
parent 7879c50b98
commit b41d0d4f77
2 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@ FOUG_DATAX_LIBSTL_EXPORT int foug_stla_read(foug_stl_geom_creator_t* creator,
size_t data_size_hint); size_t data_size_hint);
/*! Write geometry in the STL ascii format */ /*! Write geometry in the STL ascii format */
FOUG_DATAX_LIBSTL_EXPORT int foug_stla_write(foug_stl_geom_t* geom, FOUG_DATAX_LIBSTL_EXPORT int foug_stla_write(const foug_stl_geom_t* geom,
foug_transfer_t* trsf, foug_transfer_t* trsf,
const char* solid_name, const char* solid_name,
uint8_t real32_prec); uint8_t real32_prec);

View File

@ -100,14 +100,14 @@ static foug_bool_t foug_transfer_flush_buffer(foug_transfer_t* trsf, size_t n)
* *
* \param geom Defines the custom geometry to write * \param geom Defines the custom geometry to write
* \param trsf Defines needed objects (stream, buffer, ...) for the writing operation * \param trsf Defines needed objects (stream, buffer, ...) for the writing operation
* \param solid_name May be NULL to generate default name * \param solid_name May be NULL to generate default name
* \param real32_prec The maximum number of significant digits * \param real32_prec The maximum number of significant digits
* *
* \return Error code * \return Error code
* *
* \retval FOUG_DATAX_NO_ERROR If operation successful * \retval FOUG_DATAX_NO_ERROR If operation successful
*/ */
int foug_stla_write(foug_stl_geom_t* geom, int foug_stla_write(const foug_stl_geom_t* geom,
foug_transfer_t* trsf, foug_transfer_t* trsf,
const char* solid_name, const char* solid_name,
uint8_t real32_prec) uint8_t real32_prec)